Protect sensitive documents with an easy-to-integrate PDF security API. Add password protection to PDFs, disable printing, and restrict text copying.
Why Nutrient DWS API?
SOC 2 Compliant
Build the workflows you need without worrying about security. We don’t store any document data, and our API endpoints are served through encrypted connections.
Easy Integration
Get up and running in hours, not weeks. Access well-documented APIs and code samples that make integrating with your existing workflows a snap.
Robust and Flexible
With access to more than 30 tools, you can process one document in multiple ways by using API credits. Generate PDF from HTML, convert Word, Excel, PowerPoint and image files to PDF, and more.
Simple and Transparent Pricing
Select a package that suits your needs according to the number of credits you wish to spend. Each API tool and action has a specific credit cost.
Try It Out
This example protects the document with a password.
Add a PDF named document.pdf to your project folder. You can also use our sample file.
The file name is case sensitive. Make sure the file name matches the file name in the sample code.The file name is case sensitive. Make sure the file name matches the file name in the sample code.
PDF files can be protected with passwords to control who can access, modify, and print the contents of a document.
PDFs are protected with two types of passwords: the owner password and the user password.
Owner password — This password allows the owner of a PDF file to modify the file and change its permissions. The owner can change the user password, as well as set or modify the user permissions that control what users can do with the file.
User password — This password allows a user to open a PDF file with a set of permissions defined by the owner of the file. These permissions control what the user can do with the file, such as view, print, copy, or modify the contents. The user password can be used to protect the PDF file from unauthorized access by preventing users from viewing or modifying the file without the password.
PDF Permissions
Specify what users can do to a password-protected document with the user_permissions parameter. The value of this parameter is an array, where each element is one of the following:
annotations_and_forms allows users to add or modify text annotations and fill in interactive form fields.
assemble allows users to insert, rotate, or delete pages and create document outline items or thumbnail images.
extract allows users to copy or otherwise extract text and graphics from the document.
extract_accessibility allows users to copy or otherwise extract text and graphics from the document using accessibility options.
fill_forms allows users to fill in existing interactive form fields (including signature fields).
modification allows users to modify the document in any way not covered by the other permissions settings.
print_high_quality allows users to print the document in high quality.