Skip to content

PDF Watermark Node

Add or remove watermarks in any PDF without writing a line of code.
Both text and image watermarks are supported, plus optional layer creation/deletion and page-range targeting — all powered by iText 7.

TaskType PdfWatermark | Package Automation.Core.Tasks


⚙ Inputs

LabelTypeRequiredDescription
Local File Full PathtextAbsolute path of the PDF to modify. The file is overwritten in-place.
ModepicklistInsert Text · Insert Image · Delete

Insert Text / Image (common)

InputTypeDefaultDescription
Layer Nametext(blank)Put watermark on this layer. Blank ⇒ merge into page content.
Text LocationpicklistCenterAnchor: Center, Top Left, Top Right, Bottom Left, Bottom Right.
Transparencytext300 = fully transparent, 100 = opaque.
Page Rangetext1-Pages to process – e.g. 1, 2-5, 1,3,7-.

Insert Text–only

InputDefaultDescription
Watermark TextCONFIDENTIALText string.
Text Angle45Clockwise degrees.
Text Color (Hex)#FF0000Any hex code.
Font Size24Points.
Font NameHelveticaHelvetica, Courier, Times, Arial (uses system font).

Insert Image–only

InputDefaultDescription
Image URL or Base64(blank)Path, URL or base64 string of the image.
Image Scale Percent100Resize relative to original (50 = half-size).

Delete–only

InputTypeDescription
Layers to DeletelistNames of layers to remove (e.g. ["WatermarkLayer"]).

🗃 Outputs

NameContent
WatermarkedPdfPath to the overwritten PDF (same as input).
Task Status / MessageSuccess / fail info.

💻 Quick recipes

1 – Diagonal CONFIDENTIAL on every page

text
Mode                  Insert Text
Local File Full Path  C:\Docs\products.pdf
Watermark Text        CONFIDENTIAL
Text Angle            45
Transparency          40
Text Color (Hex)      #D00000
Font Size             32

2 – Company logo bottom-right, pages 1-3 only

text
Mode                  Insert Image
Local File Full Path  C:\Docs\handbook.pdf
Image URL or Base64   C:\Assets\logo.png
Image Scale Percent   30
Text Location         Bottom Right
Page Range            1-3
Transparency          20
Layer Name            LogoLayer

3 – Remove watermark layers after approval

text
Mode                  Delete
Local File Full Path  C:\Docs\quote.pdf
Layers to Delete      ["WatermarkLayer","LogoLayer"]

📝 Notes & Tips

Fonts – Helvetica, Courier, Times are embedded; Arial is loaded from the OS fonts folder. Supply a custom .ttf via its full path if needed.

Page Range – empty end (3-) means to last page.

Layering – leaving Layer Name blank merges watermark into /Contents (non-toggleable). Provide a name if you need to hide/show or delete later.

Image rotation – currently fixed; rotate beforehand if required.

⚠ Limitations

Large PDFs are processed via a temp file then copied over the original.

Encrypted PDFs must allow modification (reader uses SetUnethicalReading(true)).

Tentech 2024