1.6.0 • Published 10 months ago

watermark-remover v1.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Watermark Remover

npm Version License

Remove a watermark from a pdf

Introduction

This only works for text based watermarks that have been added to the pdf as text. It will not work for images or other types of watermarks.

Getting Started

You must have qpdf >v11 and exiftool (to remove metadata) installed. You can install it with brew on macos:

brew install qpdf exiftool

or with apt

sudo apt-get install qpdf exiftool

Then add this as a dependency

yarn add watermark-remover

or you can just run the binary with

npx watermark-remover -f file.pdf -w <WATERMARK TEXT>

Usage

import { removeWatermark } from "watermark-remover";

(async () => {
  const filePath = "my-file.pdf";
  const outputPath = "my-file-without-watermark.pdf";
  await removeWatermark(filePath, { watermark: "Confidential", outputFile: outputPath });
})();
1.6.0

10 months ago

1.5.0

10 months ago

1.4.1

11 months ago

1.4.0

11 months ago

1.3.0

11 months ago

1.2.1

11 months ago

1.2.0

11 months ago

1.1.0

11 months ago

1.0.0

11 months ago