can I use perl to write a Postscript file and send it to the printer?
lkrubner_at_geocities.com
Date: 11/04/05
- Next message: Bill Marcum: "Re: KSH /tmp/sh$$.* files problem"
- Previous message: amerar_at_iwc.net: "Piping responses into commands"
- Next in thread: Robert Bonomi: "Re: can I use perl to write a Postscript file and send it to the printer?"
- Reply: Robert Bonomi: "Re: can I use perl to write a Postscript file and send it to the printer?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 4 Nov 2005 06:59:26 -0800
I have a shell that is working fine. It gets some data from the
database and sends it to the printer. But now I need to change it.
The information we get from the database is in regards to the
photographs that our graphics department has taken. For clarity sake,
we would like to start printing out the image itself, along with all
the data about it.
I know how to send pure text to a printer, but I don't know how to send
formatted text and images to the printer.
I have an idea how to proceed, someone please tell me if this will
work. I will write a Perl script that does the following:
1.) Takes some text and the address on the harddrive of an image.
2.) Wraps this in some Postscript to format it.
3.) Save the text/image/postscript to the harddrive with a name like
"fileToPrint.ps"
4.) Call lpr - v "fileToPrint.ps" to send it to the printer.
Would that work? And what is the correct extension for the file? "ps"?
"eps"? Something else?
- Next message: Bill Marcum: "Re: KSH /tmp/sh$$.* files problem"
- Previous message: amerar_at_iwc.net: "Piping responses into commands"
- Next in thread: Robert Bonomi: "Re: can I use perl to write a Postscript file and send it to the printer?"
- Reply: Robert Bonomi: "Re: can I use perl to write a Postscript file and send it to the printer?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|