protect_pdf
Protect a local PDF by setting an open password and optional permission profile, using the PDF4me API. Provide file path and password; choose output directory and file name as needed.
Instructions
Password-protect a local PDF using the PDF4me Protect API. Provide the file path, open password, and pdf_permission (for example All). Optionally specify output directory and file name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | Yes | Open password for the protected PDF (required). | |
| file_path | Yes | Local path to the PDF file to protect. | |
| output_dir | No | ||
| pdf_permission | No | PDF permission profile string (for example All); matches API pdfPermission. | All |
| output_file_name | No |