Protect Document
Connector ID: Protect Document
Password protection of a document is that which is needed to keep your information safe and secure. Unauthorized access to your document can be prevented to a great extent using this PDF4me feature ‘Protect Document’.
- Method: POST
- Endpoint: /api/v2/Protect
Parameters
- File ContentBase64, Required
The content of the input file
- File NameString, Required
Source file name with proper file extension
- PasswordString, Required
Password of PDF file, the input must be in string format.
Example - 1234
- PDF PermissionEnum, Required
Permissions to be set while protecting with password. Allowed options are
- All - You can select all permission.
- None - You can select none permission.
- Copy - You can select copy permission.
- Annotate - You can select annotate permission.
- Fill Forms - You can select fillforms permission.
- Support Disabilities - You can select supportdisabilities permission.
- Assemble - You can select assemble permission.
- Digital Print - You can select digital print permission.
//- Print and Modify - You can select all permission.//
Output
- File ContentBinary
Password protected PDF file content from PDF4me protect action
- File NameString
Output file name from PDF4me protect action
Header
Content-Type:application/json
Authorization: Please copy key from the link.
Payload
{
"docContent": "Please put PDF base64 content",
"docName": "output.pdf",
"password": "1234",
"pdfPermission": "All"
}
PDF4me api samples
- CSharp(C#)
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda