The following example democtrates how to create a watermarker for a document stream:
advanced_usage.loading_documents.LoadFromStream
// Specify an absolute or relative path to your document. Ex: "C:\\Docs\\document.docx"
FileInputStreamdocument=newFileInputStream("document.docx");Watermarkerwatermarker=newWatermarker(document);// use watermarker methods to manage watermarks
TextWatermarkwatermark=newTextWatermark("Test watermark",newFont("Arial",12));watermarker.add(watermark);watermarker.save("document.docx");watermarker.close();document.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.