fynepdf logo
Docs menu

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

InputTypeRequiredWhat it does
file_idstringA FynePDF file_id from upload_file, import_file_from_url or an earlier tool.
fileobjectA file the person attached in ChatGPT (filled in by ChatGPT).
file_urlstringA public link to the file.
library_file_idstringA file from the person's FynePDF Library (from list_library_files).
operation"lock" · "unlock" · "flatten"yes
passwordstring

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