Restrict PDF is a REST API tool that applies usage restrictions to a PDF as a security measure to limit the ways in which viewers can interact with the document, such as printing, editing, or copying text.
Start right from your browser - upload files, choose parameters, generate code, and send API Calls directly from API Lab!to receive your free API Key.
curl -X POST "https://api.pdfrest.com/restricted-pdf" \ -H "Accept: application/json" \ -H "Content-Type: multipart/form-data" \ -H "Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
Api-Keyfield with your unique API Key
filewith the local path to your input
curl -X POST "https://api.pdfrest.com/restricted-pdf" \ -H "Accept: application/json" \ -H "Content-Type: multipart/form-data" \ -H "Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \ -F "file=@../Sample_Input/ducky.pdf" \ -F "output=example_out" \ -F "new_permissions_password=password" \ -F "restrictions=print_low" \ -F "restrictions=accessibility_off"
restrictionsparameter lets you indicate the restrictions you would like to apply to your document. Restrictions can include one or more of the following:
Create your FREE API Key to start processing PDFs in seconds, only possible with pdfRest.