'Print PDF on client computer through PHP Exec
$filename="example.pdf";
$str= "C:/Users/pawan/Downloads/aaryahms/$filename";
$val = str_replace('\\', '/', $str);
$prAddr1="C:\Program Files (x86)\Foxit Software\Foxit Reader\Foxit
Reader.exe";
exec(" \"$prAddr1\" /p $val");
I am using Foxit-Reader Software which is a PDF reader/editor Software. and calling the above command after downloading the pdf generated through dompdf.
localhost: Windows 10 server : Linux
This is working fine on my localhost XAMPP Server. But when it is uploaded to server, It is neither generating any error nor performing any action.
thanks for your help.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
