can I use perl to write a Postscript file and send it to the printer?

lkrubner_at_geocities.com
Date: 11/04/05


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?



Relevant Pages

  • Re: Mail-merging with Word, MySQL... and Perl?
    ... Alt+F9 to toggle off their display. ... connection to my MySQL database on my Linux box. ... Or if a couple has its anniversary listed, I'll want to format ... the Perl script directly (which would be written to generate that data in ...
    (microsoft.public.word.mailmerge.fields)
  • perl with mysql which takes a file as a input that contains t he info to create the tables
    ... inserting values into the database. ... only procedure for taking input from a file (using perl script) into ... MySQL database is through place holders. ... Where the passlist.txt hav the data in the format ...
    (perl.beginners)
  • perl with mysql which takes a file as a input that contains t he info to create the tables
    ... inserting values into the database. ... only procedure for taking input from a file (using perl script) into ... MySQL database is through place holders. ... Where the passlist.txt hav the data in the format ...
    (perl.beginners)
  • Re: Protel 2004 answer to Brad Velander.
    ... Sorry, you misunderstand me, I mean to say that jump from 99SE to 2004 XP ... you don't have the same format with one database will all the documents. ... Well you said that you can export file format more recent than AUTOCAD 14 ... key/mouse click you press because I don't know how to do that with Protel ...
    (sci.electronics.cad)
  • Re: Combo box not finding record... sometimes
    ... Try the Format option last. ... Private Sub cboLnNum_AfterUpdate ... when I change the data type from Double to Long Integer the database ...
    (microsoft.public.access.formscoding)