// Specify an absolute or relative path to your document. Ex: "C:\\Docs\\test.doc"
Watermarkerwatermarker=newWatermarker("test.doc");// watermarking goes here
TextWatermarkwatermark=newTextWatermark("Test watermark",newFont("Arial",12));watermarker.add(watermark);// Saves the document to the specified location
watermarker.save("test.doc");watermarker.close();
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.