Load from local disk

The folowing example demontrates how to create a watermarker for a local filesystem document:

advanced_usage.loading_documents.LoadFromLocalDisk

// Specify an absolute or relative path to your document. Ex: "C:\\Docs\\document.docx"
String filePath = "document.docx";                                                                 
Watermarker watermarker = new Watermarker(filePath);                                                        
// use watermarker methods to manage watermarks                                                             
TextWatermark watermark = new TextWatermark("Test watermark", new Font("Arial", 12));                       
                                                                                                            
watermarker.add(watermark);                                                                                 
watermarker.save("document.docx");                                                                
watermarker.close();