GroupDocs.Watermark for Java API

XLSX Watermark Management

Achieve pristine XLSX files free of watermarks using the GroupDocs.Watermark for Java API, perfect for financial reports and data analysis needing clear presentation.

Clear Watermarks from Xlsx Documents using Java

GroupDocs.Watermark simplifies the process of clearing watermarks from your business documents within Java applications. Integrate our library and follow these steps:

  1. Begin by initializing the Watermarker class with your Xlsx document. The API accepts the document either as a stream or a local file path for processing.
  2. Leverage the SearchCriteria object to refine the set of watermarks for clearing. You can utilize an image as a search parameter alongside text or formatting attributes. The more specific your search criteria, the more precise the results will be.
  3. Following the search, you’ll receive a list of identified watermarks. Proceed by clearing these watermarks from the document.
  4. Once the watermarks are cleared, save the final document using a local file path or a stream object.
// Clear image watermark XLSX document

// Pass XLSX document path to Watermarker constructor
Watermarker watermarker = new Watermarker("input.xlsx");

// Clear the document by deleting a watermark
PossibleWatermarkCollection possibleWatermarks = watermarker.search();
possibleWatermarks.removeAt(0);

// Save cleared file
watermarker.save("output.xlsx");
<dependencies> <dependency> <groupId>com.groupdocs</groupId> <artifactId>groupdocs-watermark</artifactId> <version>24.8</version> </dependency> </dependencies> <repositories> <repository> <id>repository.groupdocs.com</id> <name>GroupDocs Repository</name> <url>https://repository.groupdocs.com/repo/</url> </repository> </repositories>
click to copy
copied
More examples Documentation

Optimize Documents with Java API for Watermark Removal

Enhance document clarity by seamlessly integrating watermark removal capabilities into your Java applications. Our Java API supports removing watermarks from various document types such as PDFs and Office docs, ensuring pristine document presentation.

Remove Watermark

Java-Based Watermark Removal

Empower your Java applications with the ability to remove watermarks accurately. Whether it’s official documentation or sensitive content, maintain the integrity and clarity of your documents effortlessly.

Efficient Bulk Deletion in Java

Streamline the process of watermark removal across multiple documents with our Java API. This feature is especially useful for enterprises dealing with large volumes of files, enhancing productivity and document security.

Advanced Watermark Editing and Removal

Our Java API not only removes watermarks but also offers advanced editing options to fine-tune or completely erase watermark elements. Tailor your documents to meet exact business specifications with precision and flexibility.

Clear DOCX of shape watermark

This example shows how to clear Word document of a particular shape.

Java


//  Load Word document
WordProcessingLoadOptions loadOptions = new WordProcessingLoadOptions();
Watermarker watermarker = new Watermarker("source.docx", loadOptions);

WordProcessingContent content = watermarker.getContent(WordProcessingContent.class);

//  Remove shape by index
content.getSections().get_Item(0).getShapes().removeAt(0);

//  Remove shape by reference
content.getSections().get_Item(0).getShapes().
    remove(content.getSections().get_Item(0).getShapes().get_Item(0));

//  Save the DOCX
watermarker.save("result.docx");
watermarker.close();

GroupDocs.Watermark for Java library

The GroupDocs.Watermark for Java library empowers users to manipulate watermarks in XLSX documents seamlessly. This tool provides extensive capabilities to remove or alter watermarks without disrupting the document’s integrity, ideal for maintaining the professionalism of business and accounting documents.
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.

Refining XLSX Documents with Java

Explore the functionality of the GroupDocs.Watermark for Java API for removing and managing watermarks in XLSX files, ensuring unobstructed visibility of important data.

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