--emulate-media
- CLI
- --emulate-media
- REST
- emulate_media
Sets the CSS media type the page matches: screen or print.
Example
zshot -f page.png \
--emulate-media print \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "png",
"emulate_media": "print"
}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":"png","emulate_media":"print"}' \
-o page.png