Image

Applies to

PDFWatermark

Description

The Image property specifies the image type watermark in the PDF document

Datatype

PDFImage.

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, and the image watermark will be applied.

The following example shows how to add an image 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.image.filename = "D:\image\image.jpg"
lpdf_doc.watermark.transparency = 50
lpdf_doc.watermark.rotate = 45
//Set the size of the image watermark
lpdf_doc.watermark.scale = 0.5
lpdf_doc.save("save\watermark_2.pdf" )