PDF Add Watermark
PDF Add Watermark
Section titled “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.
How it works
Section titled “How it works”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.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
path | expression | Source PDF path. |
output | expression | Path of the resulting PDF. |
text | expression | Watermark text. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
opacity | number | Opacidad de 0.0 (invisible) a 1.0 (opaco). Por defecto 0.3. |
fontSize | number | Font size in points. By default 48. |
color | list | Color: gray (def.) · red · blue. |
angle | number | Rotation angle in degrees. By default 45. |
Output
Section titled “Output”Returns a string with the path of the created PDF.
Example
Section titled “Example”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 = redRelated activities
Section titled “Related activities”- PDF Create — create a PDF from scratch.
- PDF Merge — merge documents.