GroupDocs.Watermark for Node.js via Java API

Update PDF Document Watermarks Effortlessly

Elevate the quality of watermarks with ease using PDF. Enhance the protection of your business materials with a range of watermarks. Fine-tune watermark characteristics such as size, alignment, rotation angle, and position as needed.

Dynamic Watermark Edit for PDF in Node.js via Java

GroupDocs.Watermark for Node.js via Java offers Node.js via Java developers a powerful API for editing watermarks across diverse PDF documents. Here’s a comprehensive guide to streamline your workflow:

  1. Start the Process: Begin by providing your PDF file as an argument to the Watermarker class constructor. Depending on your requirements, the file can be sourced either as a stream or from a local disk location.
  2. Pinpoint Watermarks: Use the SearchCriteria object to identify the watermarks in need of modification. This versatile tool enables targeted watermark selection based on specific properties.
  3. Refine with Precision: Upon successful execution of the search, gain access to a collection of relevant watermarks. Enjoy granular control over each element, with the ability to update dimensions, page positioning, text content, color, image data, and more.
  4. Seamless Persistence: Once watermark updates are complete, securely store the modified document. The API offers flexible storage options, allowing you to save to a local file path or as a stream object.

// Update image PDF watermark

// Compose Watermarker for PDF file
const watermarker = new groupdocs.watermark.Watermarker("input.pdf");

// Use SearchCriteria to find a particular image
const searchCriteria = 
    new groupdocs.watermark.ImageDctHashSearchCriteria("logo.png");
const watermarks = watermarker.search(searchCriteria);

// Update image content
for (const watermark of watermarks.getInnerList().toArray())
{
    watermark.setImageData(imageData);
}

// Save updated file
watermarker.save("output.pdf");
npm i @groupdocs/groupdocs.watermark
click to copy
copied
More examples Documentation

Deep dive into adding Watermark

API to render, display, convert documents, slides, diagrams, and many other document types in .NET applications

Add Watermark

Effortlessly Edit Watermarks in PDFs

GroupDocs.Watermark offers robust tools in Node.js via Java to seamlessly edit existing watermarks in PDF documents. Adjust position, transparency, and more with ease.

Refine Watermark Details for Precision

Take control over the details. Our API allows you to fine-tune the appearance of watermarks, enabling precise modifications of size, opacity, and color in your PDFs.

Streamlined Watermark Management

Our API simplifies watermark management. Whether updating or removing, you can manage watermarks efficiently, maintaining document integrity while catering to your branding needs.

Update Presentation watermark content

This example shows how to update text content of Presentation watermarks

TypeScript


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

    //  Load the PDF document for processing
    const watermarker = new groupdocsWatermark.Watermarker("source.pptx");

    //  Search for specific watermarks that meet your criteria
    const searchCriteria = new groupdocsWatermark.TextSearchCriteria("denied", false);
    const watermarks = watermarker.search(searchCriteria);

    //  Edit the watermark's settings, such as size, color, and position
    for (const watermark of watermarks.getInnerList().toArray()) {
        watermark.setText("accepted");
    }

    //  Save the updated document to a local system or stream it directly
    watermarker.save("result.pptx");
    watermarker.close();

GroupDocs.Watermark for Node.js via Java Info

GroupDocs.Watermark for Node.js via Java offers advanced capabilities to update watermarks in documents effortlessly. With this tool, developers can enhance the appearance and visibility of watermarks in various file formats, including PDF, Microsoft Word, Excel, PowerPoint, Visio, email, and image formats. All popular operating systems and Node.js via Java versions are supported.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Watermark for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Watermarks Updating is Available for Many Formats

Effortlessly enhance watermarks in PDF, Word, Excel, and more with GroupDocs.Watermark for Node.js via Java. 50+ file formats are supported.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English