A paginated PDF document rendered through the browser’s print path. --pdf-password and --pdf-allow encrypt it with AES-256.
A URL that is a PDF
When the page to be captured is a PDF and the output type is not an archival format, har or download, ZShot will render it into an intermediary HTML format in order to operate on it. This allows ZShot to fill out PDF forms when using the navigator or render a PDF as PNG. As the PDF is being converted into an intermediate form, there may be some rendering fidelity loss.
Example
zshot -f gazette.pdf https://zshot-cli.com/example_assets/gazette/{
"url": "https://zshot-cli.com/example_assets/gazette/",
"output_type": "pdf"
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/gazette/","output_type":"pdf"}' \
-o gazette.pdf