Epson to PostScript filtering/printing

MaxarK

New Member
Hi all,

This is just a small set of scripts to print simple Epson reports to PostScript printers. I'm putting them up here just in case someone else has to maintain an application but can't modify the reports to print PCL or PDFInclude or whatever.

The idea is to print as close to the original Epson format as possible, and I've succeeded for the 2 applications I wrote this for.

We only use a small set of codes -

condense ^O, ^R
double width ESC W1, ESC W0
bold ESC G, ESC H
reset printer ESC@

You could easily add to these scripts, sorry I didn't have time to go beyond what we use and they sort of evolved in small hacked updates so I didn't modularise it nicely but the scripts are short and it should be OK to modify.

It's also A4 page specific but again it should be easy to adjust the values for whatever page types you use.

You could also throw in another line in the script, such as ghostscript, to convert the PostScript to PDF, email the report, etc.

It handles A4 portrait, Wide dot matrix (133 column) reports converted to A4 landscape and also has an automatic fallback method so it detects the biggest font and orientation after analysing your input report.

I had to zip the cpio before attaching to this post because progresstalk didn't like the cpio file extension!

You will require perl and enscript.

Read the README and let me know if you have any trouble with the basic functionality of it and sorry if it doesn't suit your situation but reply here and I might be able to give you some help.

PS. I forgot to mention this is a set of shell/perl scripts. No Progress required so it might be useful for all sorts of apps.
 

Attachments

Back
Top