--pdf-password
- CLI
- --pdf-password
- REST
- pdf_password
Encrypts the PDF with AES-256 and requires this password to open it. Reproductions and diagnostics omit the password.
When the input page is a locked PDF, this password opens it for any output format: -t png --pdf-password "open sesame" locked.pdf renders its pages. A locked PDF written with -t pdf keeps its own encryption.
Example
zshot -f page.pdf \
--pdf-password "open sesame" \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "pdf",
"pdf_password": "open sesame"
}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_password":"open sesame"}' \
-o page.pdf