GroupDocs.Watermark for Java

Discover Advanced Word Watermark Search

Embark on a journey to explore the cutting-edge watermark search features offered by GroupDocs.Watermark for Java.

Search for watermarks in Word files using Java

GroupDocs.Watermark makes it easy to search for watermarks already placed in business documents. Download our package and involve it into your Java application to take advantage of its benefits.

  1. In order to use our library features you need to load Word file to the Watermarker class instance. It is possible to provide just a file path, file stream or a byte stream.
  2. To narrow list of possible watermarks use SearchCriteria object. Provide image as an example to get similar image watermark. If you want to search for textual watermark provide text, font, color and other options.
  3. To get watermarks placed in the document use method Search of the Watermarker object. You will be provided with collection of objects which may be processed as watermarks.
  4. Finally, you are free to do with result of search whatever you want. It is completely possible, to delete found watermarks or edit their properties. Change size or text, for example.

// Search text watermarks in WORD document

// Get Watermarker instance for WORD document
Watermarker watermarker = new Watermarker("input.docx");

// Search watermarks by criteria
ImageSearchCriteria imageSearchCriteria = new ImageDctHashSearchCriteria("watermark.jpeg");
imageSearchCriteria.setMaxDifference(0.9);
PossibleWatermarkCollection possibleWatermarks = watermarker.search(imageSearchCriteria);

// Process watermarks
System.out.println("Found " + possibleWatermarks.getCount() + " possible watermark(s).");
<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

Harness Java for Advanced Watermark Search with GroupDocs.Watermark

Utilize GroupDocs.Watermark Java API to perform sophisticated searches for watermarks in documents across diverse formats in the Java.

Advanced Watermark Search

Java-Enhanced Watermark Search Techniques

Empower your Java applications with advanced search techniques using GroupDocs.Watermark. Our API enables deep searches for embedded watermarks across various document types, offering precision and efficiency.

Identify Watermarks with Custom Java Queries

Customize your Java queries to detect watermarks more effectively. Use GroupDocs.Watermark to sort and filter watermarks by properties like transparency, embedding method, and text or image content.

Efficient Management of Document Watermarks

Streamline the management of watermarks in your Java applications. With GroupDocs.Watermark, quickly find, review, and analyze watermarks to ensure document integrity and compliance with branding guidelines.

Java Code Example: Intelligent Watermark Search

Learn how to implement an intelligent watermark search using Java with GroupDocs.Watermark, demonstrating the API’s ability to handle complex search operations and result management.

Java


//  Set up the Java environment and load documents from various sources
PdfLoadOptions loadOptions = new PdfLoadOptions();
Watermarker watermarker = new Watermarker("source.pdf", loadOptions);

//  Define advanced search parameters to locate specific types of watermarks
TextSearchCriteria textSearchCriteria = new TextSearchCriteria("Company Name");

//  Execute the search and process the found watermarks for detailed review
RotateAngleSearchCriteria rotateAngleSearchCriteria = new RotateAngleSearchCriteria(30, 60);
SearchCriteria combinedSearchCriteria = imageSearchCriteria.or(textSearchCriteria)
                                                           .and(rotateAngleSearchCriteria);

//  Save or update the document based on the watermark search results
PossibleWatermarkCollection possibleWatermarks = watermarker.search(combinedSearchCriteria);
System.out.println("Found " + possibleWatermarks.getCount() + " possible watermark(s).");
watermarker.close();

About GroupDocs.Watermark for Java

GroupDocs.Watermark for Java provides a robust solution for managing watermarks using Java. Developers can effortlessly create, edit, search, and remove watermarks from documents in popular file formats. It supports both text and image watermarks across various document types, including PDF, Microsoft Word, Excel, PowerPoint, Visio, email, and image formats. GroupDocs.Watermark for Java seamlessly integrates with all major operating systems and Java versions.
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.

Master Watermark Search Across Formats

Unlock the potential of GroupDocs.Watermark for Java to search and manipulate watermarks in different supported file formats.

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