Skip to content

PDF Add Watermark

Type: pdf-add-watermark  ·  Package: PDF Activities v1.0.0  ·  Output: string

Adds a text watermark, diagonally, to all pages of a PDF, and saves the result to a new file. Useful for marking documents as “COPY”, “CONFIDENTIAL”, “DRAFT” or with the recipient’s name.

Overlays the text as a watermark on each page, with the indicated opacity, size, color and angle, and creates a new PDF in output. Returns the path of the created file.

ParameterEditorDescription
pathexpressionSource PDF path.
outputexpressionPath of the resulting PDF.
textexpressionWatermark text.
ParameterEditorDescription
opacitynumberOpacidad de 0.0 (invisible) a 1.0 (opaco). Por defecto 0.3.
fontSizenumberFont size in points. By default 48.
colorlistColor: gray (def.) · red · blue.
anglenumberRotation angle in degrees. By default 45.

Returns a string with the path of the created PDF.

Mark each copy with the recipient’s name:

PDF Add Watermark
path = = rutaContrato
output = = "C:/copias/" + cliente.nombre + ".pdf"
text = = "COPIA — " + cliente.nombre
opacity = 0.2
color = red