GroupDocs.Watermark for Java allows you to make business applications that enable your end-users to apply new watermarks, search and delete existing watermarks in files of supported formats. You can programmatically assign digital watermarks to lots of file formats and utilize its powerful smart search abilities. GroupDocs.Watermark for Java provides various built-in security measures that can be employed to avoid misuse of digital documents that contain sensitive information or intellectual property content.
GroupDocs.Watermark for Java allows you to work with numerous kinds of watermarks. It is only a matter of few lines of code to add watermark of any type. Following example shares, how you can add an image watermark in a Word document using Java:
Document doc = Document.load(Common.mapSourceFilePath("D://test.docx"));
Font font = new Font("Times New Roman", 12);
TextWatermark watermark = new TextWatermark("Test watermark", font);
// Set sizing type
watermark.setSizingType(SizingType.ScaleToParentDimensions);
// Set watermark scale
watermark.setScaleFactor(0.5);
doc.addWatermark(watermark);
doc.save(Common.mapOutputFilePath("D://test.docx"));
doc.close();
With GroupDocs.Watermark for Java API you can add or remove watermark of all documents present in a particular folder in batch mode. It does not matter, if the documents are of different format, GroupDocs.Watermark for Java will apply watermark to all the files accurately.
With minimal code you can assign foolproof security to your watermarks and make it extremely difficult for any 3rd party tool to modify or remove your assigned watermark from PDF file. It is so because GroupDocs.Watermark for Java allows you to convert all pages of a PDF file into Rasterized images. This approach makes your digital watermarks secure while keeping their quality near to original.