Re: pdf and send to printer question
| From: | Frank Arensmeier | Date: | Wed, 20 Jun 2007 07:34:00 +0000 |
| Subject: | Re: pdf and send to printer question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257472@lists.php.net to get a copy of this message | ||
Mike. I would start by confirming that the pdf library has been enabled/loaded successfully. Call phpinfo() and look for the pdf library. It should be there. Since I am on Mac OS X, I am not sure what php_cpdf.dll/php_pdf.dll really is (pdflib? - why two libraries?). Anyway, the error you get indicates that the pdf extension hasn't been loaded successfully. Did you restart the server after enabling it?
Regarding the printing issue, assuming that you are on Windows, there is a PECL extension called php_printer.dll that should do what you want.
For download: http://pecl4win.php.net/ext.php/php_printer.dll
Documentation: http://se2.php.net/manual/en/ref.printer.php
//frank
19 jun 2007 kl. 22.43 skrev Mike Ryan:
I am trying to get a query to run and outputed to a pdf file I get the following error Fatal error: Call to undefined function pdf_begin_document() in my php.ini I have php_cpdf.dll and php_pdf.dll enabled am I missing something.? also is there a way to send the document I create to the printer instead of the screen? --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php