mjdewitt at alexcommgrp.com
Wed Feb 5 10:56:41 EST 2003
We have a need to print documents (TIFF files) that reside on a linux server
via a browser. Since you didn't say what kind of server, nor what kind of
document, my suggestions may not apply.
An approach that might be suitable is to write out the html to a file and
use a script like html2ps to render the page in postcript so that it can be
printed from the server. If it's not an html page that you need printed,
there are lots of conversion utilities out there such as tiff2ps, gif2ps and
so on. Many document types can be handled automagicially by ghostscript.
Where things get hairy is in setting printer options (under Linux anyway)
where you may need to pull paper from tray 3, output to bin 2, duplexed,
landscape. Perhaps printer handling has improved a bit in later distros,
but for RH 6.2, it was build your own.
> -----Original Message-----
> From: Edgar Reyes [SMTP:ereyes at totalcreations.com]
> Sent: Wednesday, February 05, 2003 12:26 AM
> To: NYPHP Talk
> Subject: Re: [nycphp-talk] printer_list
> well I don't know if this is what you are trying to achieve but why not
> ----- Original Message -----
> From: "Michael Welsh" <welsh_michael at hotmail.com>
> To: "NYPHP Talk" <talk at nyphp.org>
> Sent: Tuesday, February 04, 2003 7:18 PM
> Subject: [nycphp-talk] printer_list
> > All,
> > I'm trying to send output directly to a printer without the user
> > File>Print on their browser. I'm using PHP Version 4.2.2.
> > I've looked it up online
> > http://www.php.net/manual/en/function.printer-list.php and even
> > it, but didn't find much.
> > Has anyone used this? I couldn't get it to return anything on a windows
> > linux server running Apache: var_dump( printer_list(PRINTER_ENUM_LOCAL
> > PRINTER_ENUM_NETWORK) );
> > Am I on the right track? Any feedback would be great.
> > Michael
> > _________________________________________________________________
> > Tired of spam? Get advanced junk mail protection with MSN 8.
> > http://join.msn.com/?page=features/junkmail
> --- Unsubscribe at http://nyphp.org/list/ ---
More information about the talk