watermark-remover
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

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 });
})();

/watermark-remover/

    Package Sidebar

    Install

    npm i watermark-remover

    Weekly Downloads

    3

    Version

    1.6.0

    License

    MIT

    Unpacked Size

    42.2 kB

    Total Files

    15

    Last publish

    Collaborators

    • jonluca