pdf_remove_password
Remove password protection from a PDF file to unlock access. Supports URLs and optional password input.
Instructions
Remove password protection from a PDF file.
Ref: https://developer.pdf.co/api-reference/pdf-password/remove.md
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| httpusername | No | HTTP auth user name if required to access source url. (Optional) | |
| httppassword | No | HTTP auth password if required to access source url. (Optional) | |
| password | No | Password of the PDF file to be removed. (Optional) | |
| name | No | File name for the generated output. (Optional) | |
| api_key | No | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
Implementation Reference
- pdfco/mcp/services/pdf.py:109-112 (helper)Helper function 'remove_pdf_password' that makes the actual API request to 'pdf/security/remove' endpoint via the PDFCoClient.
async def remove_pdf_password( params: ConversionParams, api_key: str | None = None ) -> BaseResponse: return await request("pdf/security/remove", params, api_key=api_key)