Re: printing with PHP
| From: | Jyry Kuukkanen | Date: | Thu, 22 May 2003 07:41:09 +0000 |
| Subject: | Re: printing with PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148512@lists.php.net to get a copy of this message | ||
On Thu, 22 May 2003, Iñaki Atienza wrote:
> thanks for answering daniel,
>
> I was thinking more about server side printing (the client only fills in the
> form and submit it to the restaurant where the order gets printed
> automatically ). Have any ideas for this ?
>
> iatz.
Hello
If the server runs M$-Windows, you are most likely out of luck.
In Linux/Unix world, yes, it is possible.
Take a look at http://dataxi.sourceforge.net - follow
the "Community" link
to get to the S-forge project page and download latest
dataxi-install-xxx.tar.gz package. It contains dzdocprint.php that
produces PDF output that may be output by using "lpr -Pprintername" or so.
You need PHP compiled with pdflib support
(http://www.pdflib.com/products/download-source.html).
I have used this combination in production environment for a year now.
Let me know is you need further information how to get it working.
Cheers,
--Jyry
>
> <daniel@electroteque.org> escribió en el mensaje
>
> news:52598.203.15.102.65.1053559892.squirrel@www.electroteque.org...
> > well delphi hooks into the windoze com objects , php is limited to how
> much
> > access the browser has on unix anyway , there is the print functions for
> > windoze php , but is that for the server printing or the client i assume
> > the server , anyway there is the jscript print() function , there is
> > another system i have come up with , as printing from the screen is too
> > sporadic , i format the print output to a html table then header output to
> > pdf using htmldoc , then the layout is clean and the user can print from
> pdf
> > > Iñaki,
> > >
> > > I have done this is the past via a Delphi program that you set as the
> > > file type handler for a webpage and then when the page is called it
> > > would open up the app and print.