Applies to
Description
The Text property specifies the text type watermark in the PDF document
Datatype
Usage
In scripts
There are two types of watermarks, text and image. You can only use one type of watermark in a PDF document. If both types are specified, the text watermark will be ignored.
The following example shows how to add a text watermark.
PDFdocument lpdf_doc PDFpage lpdf_page PDFwatermark lpdf_water lpdf_doc = create PDFdocument lpdf_page = create PDFpage lpdf_water = create PDFwatermark lpdf_doc.addpage( lpdf_page) lpdf_doc.watermark.text.content = "text watermark" //Set the font size of the text watermark lpdf_doc.watermark.text.font.fontsize = 38 lpdf_doc.watermark.transparency = 50 lpdf_doc.watermark.rotate = 45 lpdf_doc.save("D:\watermark.pdf" )