shot-scraper
shot-scraper copied to clipboard
YAML configuration for PDF shots
I added PDF support here:
- #24
But there's currently no way to script PDFs in the YAML syntax with shot-scraper multi
. This would be really useful, especially as the PDF generation grows even more options:
- #26
This could work:
- output: example.pdf
pdf: true
url: http://www.example.com/
Since PDF will accept a different set of options from regular screenshots I think this will be the point at which I add much more robust validation of the YAML mini-language, probably using https://pydantic-docs.helpmanual.io/
Hi Simon, I was setup a new repository using your excellent template and was confused when adding shots with a PDF output file failed to render valid PDFs. Would it be worthwhile to mention the formats that are allowed on your detailed documentation page to prevent future confusion about multi-shots? PNG worked great but PDF failed completely.
Additionally, if there is a workaround for Actions multi-shots that you'd recommend for those wishing to generate PDFs, please do let me know. I was thinking of writing a wrapper for myself around shot-scraper pdf
that reads a custom YAML file and executes shot-scraper pdf
in a subshell.
Thanks for making this great tool!