PDF Generator API icon

PDF Generator API

Generate PDFs, manage templates, convert HTML/URLs to PDF, and perform PDF operations like watermarking, encryption, and optimization

PDF Service → Encrypt Document

AI-generated

Summary

Encrypts a PDF through the PDF Generator API, accepting the document from a public URL or base64 content and applying optional owner and user passwords.

Inputs

  • PDF Source — Choose whether the PDF comes from a public URL or base64 content; defaults to URL.
  • PDF URL (required) — Public URL of the PDF to encrypt; shown when PDF Source is From URL.
  • PDF Base64 (required) — Base64-encoded PDF content; shown when PDF Source is From Base64.
  • Output Format — Choose Base64 JSON, a download URL in JSON, or a binary file; defaults to Base64 JSON.
  • Owner Password — Optional password granting full access to the PDF.
  • User Password — Optional password required to view the PDF.

Output shape

One output item per input item, containing JSON or binary PDF data depending on Output Format.

JSON formats include success, operation, format, and the API response fields. Binary format includes a processed-document.pdf binary property and JSON metadata with filename and file size. The node sends the selected source and any non-empty passwords to the encrypt endpoint; credentials for PDF Generator API are required.

Links

Discussion