Watermark

Applies to

PDFDocument

Description

The Watermark property sets or gets the watermark of the PDF document.

Datatype

PDFWatermark.

Usage

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"