Decrypt a PDF
Opens encrypted PDFs and removes their encryption.
POST/forms/pdf/decrypt
Form data
Options
curl \
--request POST http://localhost:3000/forms/pdf/decrypt \
--form files=@encrypted.pdf \
--form password=secret \
-o report.pdf
In a list of stages, decrypt comes first, and the stages after it work on the open PDF. It doesn't combine with sign or timestamp: sign the decrypted PDF in a request of its own. The read routes take a password field instead.
In a list of stages
The stage also runs in a list on /forms/pdf/pipe, and on the PDFs a Chromium or LibreOffice conversion makes, in its stages field:
curl \
--request POST http://localhost:3000/forms/pdf/pipe \
--form files=@encrypted.pdf \
--form 'stages=[
{ "op": "decrypt", "password": "secret" }
]' \
-o decrypted.pdf