PDF Api Hub icon

PDF Api Hub

HTML to PDF

Actions36

Protect / Unlock PDF → Lock PDF

AI-generated

Summary

Encrypts a PDF with a user password and configurable permissions, then returns the result as a binary file, hosted URL, or Base64 data.

Inputs

  • Input Type — Choose a public PDF URL (default) or a PDF from an incoming binary property.
  • PDF URL — Publicly accessible URL of the PDF; used when Input Type is URL.
  • Binary Property Name — Name of the incoming binary property containing the PDF; used when Input Type is Binary File. Defaults to data.
  • Password (required) — User password required to open the encrypted PDF.
  • Output Format — Choose binary file (default), a downloadable hosted URL, or Base64 data in JSON.
  • Output Filename — Filename for the output PDF; defaults to locked.pdf.
  • Advanced Options — Set permissions for annotations, assembling pages, copying, extraction, form filling, high-resolution printing, modifying, and printing. Choose AES-256 (default), AES-128, or legacy RC4 encryption; optionally provide the input PDF password and a separate owner password. If omitted, the owner password defaults to the user password.

Output shape

One locked PDF per input item, returned in the selected format.

Binary output is PDF data; URL output is a hosted download link described by the UI as available for 30 days; Base64 output is encoded data in JSON. The source pack shows only the operation signature, so it does not expose details of the response fields or runtime handling.

Links

Discussion