MorphoPDF icon

MorphoPDF

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

Security & Signing → Unlock PDF

AI-generated

Summary

Remove password protection from a secured PDF file using a provided password, returning the unlocked PDF either as binary data or as a temporary download URL.

Inputs

  • Input Method — Choose how to provide the input PDF file. Options are 'Binary Data' to use file data from a previous node or 'URL' to fetch the file from a public URL. The default is 'URL'.
  • File URL — If using the 'URL' input method, specify the public URL of the password-protected PDF file to unlock.
  • Input Binary Property — If using the 'Binary Data' input method, specify the binary property name containing the input PDF file (e.g., 'data'). The default is 'data'.
  • Password (required) — Specify the password that unlocks the PDF file. This is required to remove the password protection.
  • Output Type — Choose how to receive the unlocked PDF file. Options are 'Binary Data' to return the file within the workflow as binary data, or 'URL' to get a temporary download URL valid for one hour. The default is 'URL'.
  • Output Binary Property — If the output type is 'Binary Data', specify the binary property name in which to store the unlocked PDF file. Default is 'data'.

Output shape

a single record per input item

Returns the unlocked PDF file corresponding to each input item. The output is either binary data under the specified binary property or a JSON containing a temporary download URL (valid for 1 hour). The file is named 'unlocked.pdf' with MIME type 'application/pdf'.

Links

Discussion