MorphoPDF icon

MorphoPDF

Professional PDF processing - merge, split, convert, compress, protect & more

Document Management → Watermark PDF

AI-generated

Summary

Add a text or image watermark to specified pages of a PDF file, using either a URL or binary input, and receive the watermarked PDF as binary data or a temporary download URL.

Inputs

  • Input Method (required) — Choose how to provide the input PDF file: as binary data from a previous node or by a public URL (URL recommended for AI tool usage).
  • File URL — Public URL of the PDF file to watermark (required if Input Method is URL).
  • Input Binary Property — Name of the binary property containing the PDF file (required if Input Method is binary).
  • Watermark Type (required) — Select whether the watermark is text or an image.
  • Watermark Text (required) — Text to use as the watermark if Watermark Type is text.
  • Watermark Image URL (required) — Public URL of the watermark image (PNG or JPG) if Watermark Type is image.
  • Position (required) — Position of the watermark on the page (e.g., center, top-left, bottom-right).
  • Opacity (required) — Transparency level of the watermark, from 0 (invisible) to 1 (fully opaque).
  • Rotation (Degrees) — Rotation angle for text watermark in degrees (only for text watermarks). Defaults to -45.
  • Font Size — Font size in points for text watermark (only for text watermarks). Defaults to 48.
  • Color — Hex color code for text watermark color (only for text watermarks). Defaults to black (#000000).
  • Width (Points) — Width in points for watermark image (only for image watermarks). Zero means auto size.
  • Height (Points) — Height in points for watermark image (only for image watermarks). Zero means auto size.
  • Pages (required) — Pages to watermark: "all", specific pages as comma-separated list (e.g., "1,3,5"), or range (e.g., "1-5").
  • Output Type (required) — Choose how to receive the watermarked PDF: as binary data or a temporary URL (valid for 1 hour).
  • Output Binary Property — Name of the binary property to store the output file if Output Type is binary.

Output shape

a single record

Returns the watermarked PDF file either as binary data in the specified output binary property or as a JSON containing a temporary download URL valid for 1 hour. The JSON includes success status, file name, file size, and expiry information.

Links

Discussion