GroupDocs.Watermark furnishes Node.js via Java developers with a comprehensive API for the programmatic deletion of specific watermarks embedded within various Excel documents. This guide delves into the technical process:
- Initiate the workflow by instantiating the Watermarker class and providing your Excel file as a constructor argument. The file can be supplied as a byte stream, a file stream, or a path reference to a local disk location.
- To achieve precise watermark targeting, leverage the capabilities of the SearchCriteria object. This object facilitates the construction of intricate filters based on properties previously embedded within the document. You can utilize an image as a search parameter alongside text or formatting attributes to enable a highly granular selection process.
- Following the execution of the search, you’ll receive a collection of identified watermarks. These watermarks may be deleted easily.
- Upon successful watermark deletion, persist the modified document. The API provides storage flexibility, allowing you to utilize either a local file path or a stream object for final output.