Re: [PHP Desktop Forum] Can't directly print PDF files from the application

Skip to first unread message

Czarek Tomczak

Mar 25, 2015, 9:39:43 PM3/25/15
What happens when you open that PDF file in Google Chrome, does printing work?

Can you reproduce the issue with cefclient? See,_but_doesn't_work_in_PHP_D
Try testing branch 2171 (Chrome 39) and additionally the latest branch 2272.

On Thu, Mar 26, 2015 at 12:24 AM, Momen Sh <> wrote:

I can't directly print PDF files from the application, I'm using the "chrome-39.0-php-5.4.33" candidate version, I can open the PDF files as shown in the image but when I click the print icon nothing happen.

You received this message because you are subscribed to the Google Groups "PHP Desktop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
Visit this group at
To view this discussion on the web visit
For more options, visit

Mar 17, 2016, 8:14:04 AM3/17/16
to PHP Desktop
I got the same problem too. Can anyone give some solutions?

Mar 26, 2016, 10:21:46 AM3/26/16
to PHP Desktop
try kiosk-mode command_line_switches

شوف معانا

Oct 12, 2021, 2:25:36 PM10/12/21
to PHP Desktop
solution please

Le samedi 26 mars 2016 à 14:21:46 UTC, a écrit :
try kiosk-mode command_line_switches

Sam Cohen

Jan 21, 2022, 2:25:39 AMJan 21
to PHP Desktop
Try opening up a chrome browser in app mode to print to pdf

<a href="?url="> Go to print to pdf </a>

$cmd=sprintf( '"C:\Program Files\Google\Chrome\Application\chrome.exe" –disable-plugins --disable-gpu –disable-background-mode --print-to-pdf="C:/temp/name.pdf" --app=%s', $_REQUEST['url'] );


//$cmd=sprintf( '"C:\Program Files\Google\Chrome\Application\chrome.exe" --headless --disable-gpu --print-to-pdf="C:/temp/name.pdf" %s', $_REQUEST['url']);

exec( $cmd );

Reply all
Reply to author
0 new messages