Encrypt PDF is a REST API tool that securely encrypts and protects all of the content within a PDF document, requiring the viewer to enter a password to access the contents of a document.
Start right from your browser - upload files, choose parameters, generate code, and send API Calls directly from API Lab! Visit Get Started to receive your free API Key.
curl -X POST "https://api.pdfrest.com/encrypted-pdf" \ -H "Accept: application/json" \ -H "Content-Type: multipart/form-data" \ -H "Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
Api-Key
field with your unique API Keyfile
with the local path to your inputcurl -X POST "https://api.pdfrest.com/encrypted-pdf" \ -H "Accept: application/json" \ -H "Content-Type: multipart/form-data" \ -H "Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \ -F "file=@../Sample_Input/toEncrypt.pdf" \ -F "output=example_out" \ -F "new_open_password=password"
new_open_password
parameter allows you to enter a new open password for your PDF. An open password encrypts your PDF and prevents unauthorized users from viewing your document.Create your FREE Guest API Key to start processing PDFs in seconds, only possible with pdfRest.