Applies to
Description
The Watermark property sets or gets the watermark of the PDF document.
Datatype
Usage
The Watermark property and the Attachment property could not be set at the same time, because they support different PDF standards.
In scripts
The example creates a PDFWatermark object, sets a text watermark, and assigns it to a PDF document.
lpdf_doc.watermark.text.content = "text watermark" lpdf_doc.watermark.text.font.fontsize = 38 lpdf_doc.watermark.transparency = 50 lpdf_doc.watermark = lpdf_water lpdf_doc.save("D:\watermark.pdf" )
The example creates a PDFWatermark object, and sets an image watermark.
lpdf_doc.watermark.image.filename = "D:\image\image.jpg"