Reply to printing a pdf file from php

Your name:

Reply:


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?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация