Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatize PDF generation #31

Open
pintergreg opened this issue Oct 25, 2024 · 1 comment
Open

Automatize PDF generation #31

pintergreg opened this issue Oct 25, 2024 · 1 comment

Comments

@pintergreg
Copy link
Owner Author

pintergreg commented Nov 13, 2024

--no-pdf-header-footer helped from https://stackoverflow.com/a/72602556/4737417

chromium --headless --run-all-compositor-stages-before-draw --disable-gpu --print-to-pdf-no-header  --no-pdf-header-footer --no-margins --virtual-time-budget=100 --print-to-pdf=summary_week10.pdf "https://pintergreg.github.io/software-engineering/slides/summary_week10.html?print-pdf"

gives the best result, but sometimes fails without reason

issue seems to be no waiting for proper render, regardless run-all-compositor-stages-before-draw flag

chromium --run-all-compositor-stages-before-draw --disable-gpu --no-pdf-header-footer --virtual-time-budget=10000 --no-pings --headless=new --print-to-pdf=summary_week10.pdf "file://$(pwd)/summary_week10.html?print-pdf"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant