GroupDocs.Watermark for Java

Custom WEBP Watermarking with Java

Implement Java to create and manage watermarks in WEBP images, ensuring optimal protection and branding for digital content creators.

Advanced Techniques: Adding Watermarks to Webp Documents via Java

Exploring Advanced Watermarking Techniques for Webp Documents with GroupDocs.Watermark for Java

  1. Kickstart your watermarking process by initializing the Watermarker class. This foundational step sets the stage for enhancing Webp documents with watermarks. Provide the Webp file to the constructor, either as a path or a stream object.
  2. Progress to the next level by crafting Watermark objects tailored to your specifications. These versatile entities offer precise placement not only on designated document pages but also within native elements like attachments or headers.
  3. Refine your watermarking process by fine-tuning properties such as dimensions, alignment, font styles, and colors. This level of customization empowers you to create watermarks that perfectly complement your document aesthetics.
  4. Utilize the Watermarker method to apply the newly created watermarks onto your documents. Enjoy the flexibility of adding multiple watermarks as per your requirements. To preserve documents, consider saving them in a secure location.
// Add image watermark to WEBP

// Pass file to be watermarked to Watermarker
Watermarker watermarker = new Watermarker("input.webp");

// Provide path to image with watermark
ImageWatermark watermark = new ImageWatermark("watermark.png");

// Save result
watermarker.add(watermark);
watermarker.save("output.webp");
<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

Mastering Document Watermarks

Elevate your document management with our sophisticated watermarking API, tailored for .NET developers. This tool offers comprehensive solutions for applying, customizing, and managing watermarks across a wide range of document formats, ensuring both aesthetic appeal and enhanced security.

Advanced Document Watermarking

Flexible Watermark Rotation

Adapt your watermarks to fit any document orientation with our flexible rotation settings. Whether your document is portrait or landscape, easily adjust the watermark angle to maintain a consistent appearance that complements the document layout.

Perfect Transparency Control

Control the transparency of your watermarks with precision, allowing for subtle yet secure markings that do not overwhelm the document’s content. This feature is ideal for maintaining the original aesthetic of your documents while adding a layer of security.

Shadow Effects for Emphasis

Enhance the visibility of your watermarks or subtly integrate them into your documents with customizable shadow effects. This feature allows for shadows of varying blur, spread, and color, making the watermark more distinctive or discreet as required.

MS Word locked watermark

This example shows how to lock watermark in DOCX all pages

Java


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

//  Create a watermark
TextWatermark watermark = new TextWatermark("Watermark text", new Font("Arial", 19));
watermark.setForegroundColor(Color.getRed());

//  Tune native Word options
WordProcessingWatermarkPagesOptions options = new WordProcessingWatermarkPagesOptions();
options.setLocked(true);
options.setLockType(WordProcessingLockType.AllowOnlyFormFields);

//  Add watermark to result document pages
watermarker.add(textWatermark, options);
watermarker.save("result.docx");

GroupDocs.Watermark for Java

GroupDocs.Watermark for Java provides a powerful Java toolkit for embedding watermarks in WEBP images, an increasingly popular format among web developers and digital marketers. This API facilitates the addition of both visible and invisible watermarks, tailored to protect copyrights and authenticate image origins. Customize your watermark settings to include text, logos, or digital signatures, all while preserving the high compression efficiency of WEBP files. Advanced features such as dynamic opacity control, watermark scaling, and precise positioning help maintain image aesthetics and clarity, ensuring seamless integration into various digital platforms. Compatible with Java 8 and newer, GroupDocs.Watermark is essential for any developer looking to secure and monetize image assets effectively.
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.

Securing WEBP Files with Java

Apply advanced, discreet watermarks to WEBP images using Java. Tailor watermark attributes to protect and enhance digital copyrights efficiently.

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