Posted by ryanf on 04/04/06 20:25
Hello, I need some help with printing pdf files through php. I have a
script that will create many pdf files but I want them printed. I
found this program to print pdf from the command line from
http://forum.planetpdf.com/webboard/wbpx.dll/read?142106,52
and it works fine when I do the command
C:\pdfp -p "\\computer\LaserJet" "C:\Program
Files\xampp\htdocs\weeklyhomebuyers\temp\invoice4.pdf"
through start->run but when I try to do it through php using
function print_file($filename) {
$adobe_path='C:\pdfp -p "\\\computer\LaserJet"';
$output = shell_exec($adobe_path.' "'.$filename.'"');
echo $output;
}
print_file("C:\Program
Files\\xampp\htdocs\weeklyhomebuyers\\temp\invoice4.pdf");
I get this for the output:
Printer: "\\rzfarrell\LaserJet" Printing: C:\Program
Files\xampp\htdocs\weeklyhomebuyers\temp\invoice4.pdf 1 File(s) Printed
but nothing happens. Anyone have any ideas?
Navigation:
[Reply to this message]
|