--pdf-prefer-css-page-size
- CLI
- --pdf-prefer-css-page-size
Sizes the PDF page from the page’s CSS @page rule instead of --pdf-width and --pdf-height.
Example
zshot -f receipt.pdf \
--pdf-prefer-css-page-size \
https://zshot-cli.com/example_assets/cafe/{
"url": "https://zshot-cli.com/example_assets/cafe/",
"output_type": "pdf",
"pdf_prefer_css_page_size": true
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/cafe/","output_type":"pdf","pdf_prefer_css_page_size":true}' \
-o receipt.pdf