GroupDocs.Watermark for Java API

Java PDF Watermark Removal

Deploy the GroupDocs.Watermark for Java API to effectively remove watermarks from PDF files, ensuring document integrity and clarity for high-stakes documents.

Clear Watermarks from Pdf 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 Pdf 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 PDF document

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

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

// Save cleared file
watermarker.save("output.pdf");
<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 offers developers sophisticated tools to seamlessly edit out or delete watermarks from PDF documents. Whether you’re handling legal documents, business contracts, or academic papers, this tool ensures your PDF remain clean and unaltered, maintaining their original layout and formatting.
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.

Optimizing PDF Documents with Java

Discover how to utilize the GroupDocs.Watermark for Java API for comprehensive watermark management in PDF documents, enhancing both security and aesthetics.

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