PDF encryption API

A PDF in.A locked PDF out.

A password with AES-256 encryption, and the same API removes it when you supply it.

report.pdfPOST /v1/pdf/encryptlocked.pdf

USD 0.01

per file

Up to 50 pages

AES-256

encryption

User and owner password

Decrypt

with the password

Same API

Price

USD 0.01

per document, up to 50 pages

Code

One request.

curl -sS -f -X POST "$PDFLUENT_API_URL/v1/pdf/encrypt" \
-H "x-api-key: $PDFLUENT_API_KEY" \
-F file=@report.pdf \
-F 'options={"user_password":"secret"}' \
-o locked.pdf
Questions

Questions

How do I password protect a PDF with the API?+
Send the file and the password in one POST request to the encrypt endpoint. The response is the protected PDF.
Can I remove a password?+
Yes, if you supply the correct password. The decrypt endpoint returns an unprotected PDF.
Is the password stored?+
The privacy page states what the hosted API keeps and for how long.