GroupDocs.Watermark for Node.js via Java Library

Process Watermark in DOCX Documents

Effortlessly adjust watermarks with precision using GroupDocs.Watermark for Node.js via Java. Preserve the confidentiality of your company documents by applying different watermarks. Tailor watermark features including size, alignment, angle of rotation, and position to your specifications.

Dynamic Watermark Edit for DOCX 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 DOCX documents. Here’s a comprehensive guide to streamline your workflow:

  1. Start the Process: Begin by providing your DOCX 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 DOCX watermark

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

// 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.docx");
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();

Investigate GroupDocs.Watermark for Node.js via Java

GroupDocs.Watermark for Node.js via Java empowers developers to update watermarks in DOCX documents with ease. This powerful tool enables precise adjustment of watermarks in various file formats, including PDF, Microsoft Word, Excel, PowerPoint, Visio, email, and image formats. GroupDocs.Watermark for Node.js via Java can be used on many popular platforms.
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.

Update Watermarks for Other Formats

Seamlessly adjust watermarks in PDF, Word, Excel, and more with GroupDocs.Watermark for Node.js via Java. Many other 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