470,874 Members | 1,533 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,874 developers. It's quick & easy.

printing a pdf file from php

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
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;

Files\\xampp\htdocs\weeklyhomebuyers\\temp\invoice 4.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?

Apr 4 '06 #1
0 1252

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jody Gelowitz | last post: by
9 posts views Thread by Jody Gelowitz | last post: by
5 posts views Thread by Patrick De Ridder | last post: by
6 posts views Thread by Bruno Hardmeier | last post: by
4 posts views Thread by Rob T | last post: by
2 posts views Thread by coldblood22 | last post: by
18 posts views Thread by Brett | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.