--pdf-allow
- CLI
- --pdf-allow
- REST
- pdf_allow
Encrypts the PDF with AES-256 and grants readers only the permissions listed. Repeatable. Without --pdf-password, the PDF opens without a password.
| Permission | Grants |
|---|---|
print | Printing |
print-high | Printing at full quality |
copy | Copying text and images |
modify | Changing the content |
annotate | Adding comments and filling forms |
fill | Filling forms |
extract-accessibility | Text for assistive technology, always granted |
assemble | Inserting, rotating and deleting pages |
Example
zshot -f page.pdf \
--pdf-allow print \
--pdf-allow fill \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "pdf",
"pdf_allow": ["print", "fill"]
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/hello_zshot/","output_type":"pdf","pdf_allow":["print","fill"]}' \
-o page.pdf