npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@groupdocs/groupdocs.watermark

v26.1.0

Published

Create and apply watermarks on PDF, Word, Excel, PowerPoint, and image files, including JPG and PNG. Fast, powerful, and easy-to-use watermarking tool.

Downloads

57

Readme

Powerful document watermarking API for Node.js (powered by Java) designed to help developers seamlessly add, detect, customize, and remove watermarks in 40+ file formats, including PDFs, Word documents, Excel spreadsheets, PowerPoint presentations, images, Visio diagrams, and more.

Watermark example

Quick links

Key Features

  • Add text and image watermark to supported document formats.
  • Search and remove text and image watermarks.
  • Search watermarks in particular objects.
  • Apply a watermark to images inside a document.
  • Work with existing watermark objects.
  • Extract information of watermark objects in a document.
  • Perform PDF document rasterization.
  • Fetch document basic information.
  • Search watermarks by text formatting (font, color, etc.).
  • Set background image for charts in Excel and PowerPoint documents.
  • Work with PDF and email attachments.

Supported Formats

Supported File Formats

Microsoft Word: DOC, DOT, DOCX, DOCM, DOTX, DOTM, RTF Microsoft Excel: XLSX, XLSM, XLTM, XLT, XLTX, XLS Microsoft PowerPoint: PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, PPS Microsoft Visio: VSD, VDX, VSDX, VSTX, VSS, VSSX, VSDM, VSSM, VSTM, VTX, VSX OpenOffice: ODT Email: EML, EMLX, OFT, MSG Fixed Layout: PDF Image: BMP, GIF, JPG/JPEG/JPE, JP2, PNG, TIFF, WEBP

Supported Watermark Types

  • Text stamps
  • Text labels
  • Text as an image watermark
  • Image watermark

Getting Started

Prerequisites

  • Node.js (LTS recommended)
  • Java Runtime Environment (JRE) 8 or later
  • Windows, Linux, or macOS

Installation

To install the package, check the System Requirements and Installation documentation topics for platform-specific instructions.

Use cases

Here are some typical use cases:

Adding text watermak to the PDF document

This example shows how to compare two DOCX files and save a diff file.

'use strict';

const groupdocs = require('@groupdocs/groupdocs.watermak');

// Apply license, required for non-evaluation usage
const license = new groupdocs.License();
license.setLicense("GroupDocs.Watermark.lic");

// Create watermarker
const watermarker = new groupdocs.Watermarker("source.pdf");
const watermark = new groupdocs.TextWatermark('Test watermark', new groupdocs.Font('Arial', 36, groupdocs.FontStyle.Bold | groupdocs.FontStyle.Italic));
watermark.setHorizontalAlignment(groupdocs.HorizontalAlignment.Center);
watermark.setVerticalAlignment(groupdocs.VerticalAlignment.Center);

watermarker.add(watermark);
watermarker.save("result.pdf");

// Exit
process.exit(0);

The output file 'result.pdf', is the watermarked version of the original.

Search for watermarks in the document

'use strict';

const groupdocs = require('@groupdocs/groupdocs.watermak');

// Apply license, required for non-evaluation usage
const license = new groupdocs.License();
license.setLicense("GroupDocs.Watermark.lic");

// Create watermarker
const watermarker = new groupdocs.Watermarker("source.pdf");

// Search by exact string
const textSearchCriteria = new groupdocs.TextSearchCriteria("2017");

// Find all possible watermarks containing some specific text
const possibleWatermarks = watermarker.search(textSearchCriteria);

// Output the results
console.log(`Found ${possibleWatermarks.getCount()} possible watermark(s)`);

// Exit
process.exit(0);

Troubleshooting

  • Download during installation fails (corporate proxy/firewall): Ensure your environment allows downloading the required JAR during postinstall. If needed, download the file manually to the lib/ directory as described in the Installation Guide.
  • Java not found: Make sure Java (JRE 8+) is installed and available on your system PATH.
  • Permission issues when writing output files: Verify your process has write access to the target directory.

Licensing

For testing without trial limitations, you can request a 30-day Temporary License:

  • Visit the Get a Temporary License page
  • Follow the instructions to request your temporary license
  • Copy the license file and apply it using the code example
'use strict';

const groupdocs = require('@groupdocs/groupdocs.watermark');

// Apply license
const license = new groupdocs.License();
license.setLicense("GroupDocs.Watermark.lic");

This product is licensed under the GroupDocs End User License Agreement (EULA). For pricing information, visit the GroupDocs.Watermark for Node.js via Java pricing page.

Support

GroupDocs provides unlimited free technical support for all of its products. Support is available to all users, including evaluation. The support is provided at Free Support Forum, Paid Support Helpdesk and Paid Consulting.

Free Support Forum

The GroupDocs Free Support Forum is available to all users and provides:

  • Direct access to the GroupDocs.Total development team
  • Community-driven support and knowledge sharing
  • No time limitations on support requests
  • Access to historical solutions and discussions

Paid Support Helpdesk

The Paid Support Helpdesk offers:

  • Higher priority response times
  • Dedicated support team
  • Extended support hours
  • Priority issue resolution

Paid Consulting

We can work together with you on your project and develop a part or complete application. If you need new features in the existing GroupDocs product or to create API for new file formats, send us a request at consulting.groupdocs.com/contact.


Home | Product Home | Documentation | Blog | Code Samples | Free Support | Temporary License | Pricing