Skip to main content

Watermark PDF

Stamp an image (PNG/JPEG) as a watermark across pages of a PDF. The image is centred on each page, scaled to fit, rotated to the given angle, and drawn at the given opacity. Transparency in the source image is preserved.

Category: Structured Data Files (Excel, JSON, PDF) · Group: Files · Activity name: WatermarkPDF

The WatermarkPDF activity in the designer

Example

outputVariable = WatermarkPDF("<filePath>", "<imagePath>", outputPath="<outputPath>", skipFirstPage=False, pages=[], rotation=45, opacity=0.15, scale=0.85)

Inputs

NameTypeRequiredDefaultDescription
PDF File PathstringYesPath to the PDF file to watermark.
Watermark Image PathstringYesPath to the watermark image (PNG or JPEG). PNG transparency is preserved.
Output PathstringPath for the watermarked PDF. If empty, overwrites the input file.
Skip First PagebooleanFalseLeave the first page unstamped (e.g. a cover or letterhead page). Ignored when specific Pages are listed.
Pagesarray0-indexed pages to watermark. Empty = all pages (subject to Skip First Page). Negative = from end (-1 = last page).
Rotation (degrees)float45Counter-clockwise rotation of the watermark, in degrees. 45 gives a diagonal stamp.
Opacityfloat0.15Watermark opacity from 0 (invisible) to 1 (fully opaque). 0.15 is a typical faint watermark.
Scalefloat0.85Watermark size as a fraction of the page, sized so the rotated image fits within the page at any angle.

Outputs

NameTypeDescription
outputVariablestringPath to the watermarked PDF file.