protect_pdf: Lock, unlock or flatten a PDF
lock: add a password needed to open it. unlock: remove a password you know. flatten: burn form fields and annotations into the page so they can't be changed.
A tool of the FynePDF MCP server (https://api.fynepdf.com/mcp). Makes a new file; the original is kept.
Ask for it
- "Put a password on this PDF."
- "Remove the password; it's 'quarterly-24'."
Inputs
| Input | Type | Required | What it does |
|---|---|---|---|
file_id | string | A FynePDF file_id from upload_file, import_file_from_url or an earlier tool. | |
file | object | A file the person attached in ChatGPT (filled in by ChatGPT). | |
file_url | string | A public link to the file. | |
library_file_id | string | A file from the person's FynePDF Library (from list_library_files). | |
operation | "lock" · "unlock" · "flatten" | yes | |
password | string |
The same over HTTP
From your own code, call Password-protect PDF API, Unlock PDF API, Flatten PDF API.
Connect it
Claude · ChatGPT · Cursor · VS Code · Claude Code