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 → Decrypt Document

AI-generated

Summary

Decrypt an encrypted PDF document provided either via a public URL or as base64-encoded content using a user-supplied password, returning the decrypted PDF in the specified format.

Inputs

  • PDF Source (required) — Choose the source of the PDF document to decrypt: From URL or From Base64 encoded content.
  • PDF URL (required) — Public URL to the encrypted PDF document (required if PDF Source is From URL).
  • PDF Base64 (required) — Base64 encoded content of the encrypted PDF document (required if PDF Source is From Base64).
  • Password (required) — Password to decrypt the PDF document.
  • Output Format (required) — Format of the decrypted PDF output: Base64 string in JSON, download URL in JSON, or binary file data.

Output shape

a single item per input containing the decrypted PDF in the requested output format, either as a JSON with a base64 string or URL, or a binary file attachment.

Output format depends on the 'Output Format' parameter: 'Base64 (JSON)' returns a JSON with base64 string; 'URL (JSON)' returns a JSON with a download URL; 'File (Binary)' returns the PDF as binary data in the workflow output for downstream use.

Examples

Example 1: Decrypt PDF from public URL

Set PDF Source to 'From URL', provide the PDF URL of the encrypted document, supply the decryption password, and select the output format to retrieve the decrypted PDF.

Example 2: Decrypt base64-encoded PDF content

Set PDF Source to 'From Base64', provide the base64 string of the encrypted PDF, supply the decryption password, and select the desired output format.

Links

Discussion