New issue
Advanced search Search tips

Issue 912510 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 705916



Sign in to add a comment

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 
 
Components: -Blink Internals>Headless
Hi 
Sorry, it is a typo here in the question the --headless existed in the code.

Sign in to add a comment