pdf_add_password
Secure PDF files by adding password protection and encryption. Control access permissions for printing, editing, copying, and form filling. Integrates with PDF.co MCP Server for efficient document security.
Instructions
Add password protection to a PDF file.
Ref: https://developer.pdf.co/api-reference/pdf-password/add.md
Input Schema
Name | Required | Description | Default |
---|---|---|---|
allow_accessibility_support | No | Allow or prohibit content extraction for accessibility needs. | |
allow_assembly_document | No | Allow or prohibit assembling the document. | |
allow_content_extraction | No | Allow or prohibit copying content from PDF document. | |
allow_fill_forms | No | Allow or prohibit the filling of interactive form fields (including signature fields) in the PDF documents. | |
allow_modify_annotations | No | Allow or prohibit interacting with text annotations and forms in PDF document. | |
allow_modify_document | No | Allow or prohibit modification of PDF document. | |
allow_print_document | No | Allow or prohibit printing PDF document. | |
api_key | No | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) | |
encryption_algorithm | No | Encryption algorithm. Valid values: RC4_40bit, RC4_128bit, AES_128bit, AES_256bit. AES_128bit or higher is recommended. | AES_256bit |
httppassword | No | HTTP auth password if required to access source url. (Optional) | |
httpusername | No | HTTP auth user name if required to access source url. (Optional) | |
name | No | File name for the generated output. (Optional) | |
owner_password | Yes | The main owner password that is used for document encryption and for setting/removing restrictions. | |
password | No | Password of the PDF file if it's already password-protected. (Optional) | |
print_quality | No | Allowed printing quality. Valid values: HighResolution, LowResolution. | |
url | Yes | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. | |
user_password | No | The optional user password will be asked for viewing and printing document. |
Input Schema (JSON Schema)
{
"properties": {
"allow_accessibility_support": {
"default": false,
"description": "Allow or prohibit content extraction for accessibility needs.",
"title": "Allow Accessibility Support",
"type": "boolean"
},
"allow_assembly_document": {
"default": false,
"description": "Allow or prohibit assembling the document.",
"title": "Allow Assembly Document",
"type": "boolean"
},
"allow_content_extraction": {
"default": false,
"description": "Allow or prohibit copying content from PDF document.",
"title": "Allow Content Extraction",
"type": "boolean"
},
"allow_fill_forms": {
"default": false,
"description": "Allow or prohibit the filling of interactive form fields (including signature fields) in the PDF documents.",
"title": "Allow Fill Forms",
"type": "boolean"
},
"allow_modify_annotations": {
"default": false,
"description": "Allow or prohibit interacting with text annotations and forms in PDF document.",
"title": "Allow Modify Annotations",
"type": "boolean"
},
"allow_modify_document": {
"default": false,
"description": "Allow or prohibit modification of PDF document.",
"title": "Allow Modify Document",
"type": "boolean"
},
"allow_print_document": {
"default": false,
"description": "Allow or prohibit printing PDF document.",
"title": "Allow Print Document",
"type": "boolean"
},
"api_key": {
"default": "",
"description": "PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)",
"title": "Api Key",
"type": "string"
},
"encryption_algorithm": {
"default": "AES_256bit",
"description": "Encryption algorithm. Valid values: RC4_40bit, RC4_128bit, AES_128bit, AES_256bit. AES_128bit or higher is recommended.",
"title": "Encryption Algorithm",
"type": "string"
},
"httppassword": {
"default": "",
"description": "HTTP auth password if required to access source url. (Optional)",
"title": "Httppassword",
"type": "string"
},
"httpusername": {
"default": "",
"description": "HTTP auth user name if required to access source url. (Optional)",
"title": "Httpusername",
"type": "string"
},
"name": {
"default": "",
"description": "File name for the generated output. (Optional)",
"title": "Name",
"type": "string"
},
"owner_password": {
"description": "The main owner password that is used for document encryption and for setting/removing restrictions.",
"title": "Owner Password",
"type": "string"
},
"password": {
"default": "",
"description": "Password of the PDF file if it's already password-protected. (Optional)",
"title": "Password",
"type": "string"
},
"print_quality": {
"default": "",
"description": "Allowed printing quality. Valid values: HighResolution, LowResolution.",
"title": "Print Quality",
"type": "string"
},
"url": {
"description": "URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files.",
"title": "Url",
"type": "string"
},
"user_password": {
"default": "",
"description": "The optional user password will be asked for viewing and printing document.",
"title": "User Password",
"type": "string"
}
},
"required": [
"url",
"owner_password"
],
"type": "object"
}