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

409 views
Skip to first unread message

Czarek Tomczak

unread,
Mar 25, 2015, 9:39:43 PM3/25/15
to phpde...@googlegroups.com
What happens when you open that PDF file in Google Chrome, does printing work?

Can you reproduce the issue with cefclient? See https://code.google.com/p/phpdesktop/wiki/KnowledgeBase#Feature_X_works_in_Google_Chrome,_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 <alkasse...@gmail.com> 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 phpdesktop+...@googlegroups.com.
Visit this group at http://groups.google.com/group/phpdesktop.
To view this discussion on the web visit https://groups.google.com/d/msgid/phpdesktop/73e97417-d195-41e9-b20e-28e52c36d365%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

thomas.al...@gmail.com

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

frequen...@gmail.com

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

شوف معانا

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

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

Sam Cohen

unread,
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=https://google.com"> Go to print to pdf </a>

<?php
if(isset($_REQUEST['url'])):
$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'] );

//OR

//$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 );

endif;
?>
Reply all
Reply to author
Forward
0 new messages