--pdf-owner-password
- CLI
- --pdf-owner-password
Sets the password that grants every permission of an encrypted PDF. Without it, ZShot sets a random password so the --pdf-allow restrictions stay in place.
When the input page is a locked PDF, this password opens it for any output format.
Example
zshot -f page.pdf \
--pdf-allow print \
--pdf-owner-password "editor" \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "pdf",
"pdf_allow": ["print"],
"pdf_owner_password": "editor"
}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"],"pdf_owner_password":"editor"}' \
-o page.pdf