Protect PDF API
Protect and encrypt PDF documents securing with a password
Protect PDF features
The API for protecting PDF files with user or owner password. Protect PDF with 256-bit AES strongest and most secure level of encryption within the PDF format. Set additional PDF permissions for disabling editing or printing PDF. The files protected with this API guarantee that users' files will be under the best protection.
API Endpoint
ConvertAPI offers a cloud-based solution, which makes Protect PDF conversion effortless with just a single REST-API call:
Authenticate your API call
Converting pdf to protect via REST-API is now easier than ever. Sign up for a free account to obtain your authentication secret, append it as a query string parameter to the conversion URL, and voilà! You can find advanced authentication techniques in our docs.
Protect PDF using REST-API in no time!
Once you have your authentication in place, you can convert your files using application/json
, multipart/form-data
and application/octet-stream
content types.
A simple HTTP POST request using JSON would look like this:
Conversion request using cURL
You can easily convert pdf to protect with a simple cURL request. Our documentation provides more advanced cURL request techniques.
File conversion using CLI
ConvertAPI CLI allows you to convert files using our command-line file conversion utility tool. Check out CLI documentation for a detailed explanation and usage examples.
Try the conversion online - no coding required!
You can try out advanced conversion parameters and test the conversion result online using our interactive demo tool. This tool will produce the same conversion output as if you were using the library from your solution, and it will auto-generate the code snippet for you!
Try for FREE!Conversion parameters
Sets the encryption algorithm.
Values: Standard40Bit Standard128Bit Aes128Bit Aes256Bit
Encrypt metadata of PDF file.
Sets the user password (also known as a document open password) in the output PDF document. Users will be asked to enter this password before Acrobat Reader allows them to view the PDF document.
Sets the password to open protected documents.
Sets owner password (also known as a permissions password). Using a owner password, you can restrict printing, editing, and copying content in the PDF. Recipients don’t need a password to open the document. They do need a password to change the restrictions the owner set.
Enable the property if you want to respect the document's owner password and permissions. If disabled - the old owner's password and permissions will be removed by default. Setting this property requires you to enter the correct owner's password into the Password property for protected documents.
Enable the property if you want to keep the document permissions unchanged. It requires you to specify the OwnerPassword. If enabled, the document permission properties will be ignored.
Enable or disable all permissions. The specific permissions listed below overrides this property.
Enable or disable assembly of the document - insert, rotate, or delete pages and create bookmarks or thumbnail images.
Enable or disable copy or extract text and graphics from the document.
Enable or disable changing the contents of the document.
Enable or disable extract text and graphics.
Enable or disable adding or modifying text annotations and fill in interactive form fields.
Enable or disable fill-in existing interactive form fields, including signature fields.
Enable or disable document printing.
Enable or disable printing of the document to a representation from which a faithful digital copy of the PDF content could be generated.