printing a pdf file from php

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ryanf

    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\Las erJet" "C:\Program
    Files\xampp\htd ocs\weeklyhomeb uyers\temp\invo ice4.pdf"

    through start->run but when I try to do it through php using

    function print_file($fil ename) {
    $adobe_path='C: \pdfp -p "\\\computer\La serJet"';
    $output = shell_exec($ado be_path.' "'.$filename.'" ');
    echo $output;
    }

    print_file("C:\ Program
    Files\\xampp\ht docs\weeklyhome buyers\\temp\in voice4.pdf");

    I get this for the output:
    Printer: "\\rzfarrell\La serJet" Printing: C:\Program
    Files\xampp\htd ocs\weeklyhomeb uyers\temp\invo ice4.pdf 1 File(s) Printed

    but nothing happens. Anyone have any ideas?

Working...