GroupDocs.Watermark for Node.js via Java equips Node.js via Java developers with a robust API for programmatically updating watermarks within various WORD documents. This guide outlines the process:
- Start the process by supplying your WORD file as an argument to the Watermarker class constructor. Depending no your demands the file can be provided as either a stream or a reference to a local disk location.
- Subsequently, leverage the SearchCriteria object to identify the specific watermarks requiring modification. This object enables the pinpointing of watermarks based on the desired properties.
- Upon successful execution of the search, you’ll receive a collection of relevant watermarks. These watermarks offer granular control, allowing you to update properties such as dimensions, page positioning, text content, color scheme, image data, and more.
- Following the completion of watermark updates, persist the modified document. The API facilitates storage using either a local file path or a stream object.