Chrome headless CLI print-to-pdf no delay ,url in the footer and improve the resolution
Reported by
fateh.al...@gmail.com,
Dec 6
|
|
Issue description
Chrome Version : Version 70.0.3538.110 (Official Build) (64-bit)
URLs (if applicable) :
Other browsers tested: yes the same result
have tested this issue:
Safari:
Firefox: yes
Edge: yes
I am run chrome headless command from Java code vis
pdfProcess = Runtime.getRuntime().exec(....)
and this is the commands
headless --disable-gpu --run-all-compositor-stages-before-draw --virtual-time-budget=6500 --no-margins --print-to-pdf=/app/test.pdf https://stackoverflow.com/
What is the expected result?
I get a white page and no delay happened
so I have some questions and I would like to have an answer, please
1- I try too many approaches to remove the page URL from the footer but nothing works I tried to use css
@page { margin: 0; }
@media print { @page { margin: 0; } body { margin: 0; } }
by this, I manage to hide the header like date and page name but not the footer Also the command --no-margins not helping here
2- Is there a way to improve image quality? I try to use --window-size=1920,1080 but the quilty look not good still blurry is an option to modify the page's resolution in chrome headless
3- Is there a way to send a ticket with the header
I really appreciate any help or tip
thanks
,
Dec 6
Hi Sorry, it is a typo here in the question the --headless existed in the code. |
|
►
Sign in to add a comment |
|
Comment 1 by skyostil@google.com
, Dec 6