Re: printing revisited.

From: Date: Sat, 09 Sep 2006 09:32:24 +0000
Subject: Re: printing revisited.
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7242@lists.php.net to get a copy of this message
Hello all, I have tried to do a simple print and then calling acroread but it seems to not want to show the file. I downloaded the R&OS pdf classes from http://www.ros.co.nz/pdf/ as far as i can tell the file is created fine, and if i were to run acroread from terminal, the newly created pdf file shows. <?php include './include/pdf/class.pdf.php'; $file = 'reports/' . "abc" . ".pdf"; $pdf = new Cpdf(); $pdf->selectFont('./include/pdf/fonts/Helvetica'); $pdf->addText(30,400,30,'Hello World what'); $pdfcode = $pdf->output(); $fp=fopen($file,'wb'); fwrite($fp,$pdfcode); fclose($fp); echo $file; exec("acroread ",$file); ?> When i run a simple script <?php exec("acroread reports/abc.pdf"); ?> This shows perfectly, does anyone have any ideas? Kind regards, Suomaf -- View this message in context: http://www.nabble.com/printing-revisited.-tf1136366.html#a6222064 Sent from the Php - GTK - General forum at Nabble.com.

« previous php.gtk.general (#7242) next »