LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Epson ESC/P2 printer emulation tools (https://www.linuxquestions.org/questions/linux-newbie-8/epson-esc-p2-printer-emulation-tools-4175552916/)

akhilbaai 09-08-2015 06:43 AM

Epson ESC/P2 printer emulation tools
 
Is there any tools which can be used to emulate EPSON dot-matrix printers ESC/P2. I would like to test my cups interface with emulation tools which can provide PDF output. I don't have the printer hardware right now and just need to test it using any virtual printing software if available ?

michaelk 09-09-2015 10:45 AM

I do not know of any linux software tools that will convert Epson raw printer data back to something that can be viewed on the monitor. I assume from your other posts that this will be a raster image of some type versus ASCII data.

milede 10-08-2015 08:50 AM

Sorry to proof you wrong.

There is more than one way to convert ESC/P(2) to ...

EPSONPS(1) EPSONPS(1)



NAME
epsonps - convert an Epson printer file to POSTSCRIPT

SYNOPSIS
epsonps [ -L ] [ -R ] [ -c ] [ -d ] [ -e ] [ -l leftmargin ] [ -o outfile ] [ -q ] [ -t papertype ] file

DESCRIPTION
The program epsonps converts epson printer codes from an input file file to POSTSCRIPT on standard output. Unknown, ignored or invalid
epson codes are printed on standard error output. The program epsonps is an excellent ASCII listing printer. The program epsonps can
convert Epson LX-800 codes, Epson LQ-800 codes, and IBM text screen dumps.

OPTIONS
Boolean flags that are turned on by certain letters (such as -e to select elite pitch) can be turned off by following the option imme
diately with a 0 (as in -e0). The options that this can be used with are LRcdesq. The command line switches are:

-L Auto linefeed. Add linefeed after carriage return.

-R Auto carriage return. Add carriage return after linefeed. Useful for printing UNIX files which only have linefeed at end of
lines.

-c Condensed mode. Print characters at 60 of their normal width.

-d Disable debug mode. By default, unknown, ignored or invalid epson codes are output to stderr.

-e Elite mode. Print characters at elite pitch (12cpi) instead of the default pica pitch (10cpi).

-lleftmargin
Set the left margin to leftmargin pica width characters. Default left margin is 0.

-q Epson LQ-800 mode. Default is Epson LX-800 mode.

-ooutfile
Set the output file to outfile. Default is stdout.

-s Select screen dump mode. All characters except carriage return and line feed are printable. Default is off.

-tpapertype
Set the paper type to papertype. Valid paper types include:
a4 297mm by 210mm, 70 lines/page
a4-11 11 by 8.5 inch mapped to a4, 66 lines/page
a4-12 12 by 8.5 inch mapped to a4, 72 lines/page
a4-15w 11 by 15 inch mapped to a4 rotated, 66 lines/page
11 11 by 8.5 inch, 66 lines/page
11-15w 11 by 15 inch mapped to 11 by 8.5 inch rotated, 66 lines/page
Default is a4. Other formats can be easily added by modifying the source code.

FILES
epsonps.pro The POSTSCRIPT prolog.

The prolog file epsonps.pro is needed by epsonps. An attempt is made to open epsonps.pro in the current directory, and then in the
same directory as the epson executable.

SEE ALSO
lpr(1)

NOTES
POSTSCRIPT is a registered trademark of Adobe Systems Incorporated.

AUTHORS
Jonathan Greenblatt <jonnyg@rover.umd.edu>
Mark Alexander <uunet!amdahl!drivax!alexande@umd5.UMD.EDU>
Russell Lang <rjl@monu1.cc.monash.edu.au>



7 May 1991 EPSONPS(1)


Escp2topbm User Manual(0) Escp2topbm User Manual(0)



Created: 1 August 2003 escp2topbm - convert an ESC/P2 printer file to a PBM image


SYNOPSIS
escp2topbm [printfile]


DESCRIPTION
This program is part of Netpbm(1)

escp2topbm reads an ESC/P2 printer control stream as input. It produces a PBM image as output.

escp2topbm filters the raster graphic content from an Epson ESC/P2 printer control stream and writes the image it would print as a
standard (raw) PBM image.

The input is from the file named by the printfile argument, or from Standard Input if you don't specify printfile. The output is to
Standard Output.

escp2topbm understands compression modes 0 (uncompressed) and 1 (RLE compressed) in the Epson input stream.


OPTIONS
none


HINTS
As escp2topbm is a simple program, created mainly to test pbmtoescp2, there are some restrictions:



escp2topbm looks only at "ESC." sequences and ignores all data outside these Escape sequences.


escp2topbm assumes that only one raster graphic is in the printer stream. If this isn't true, the result is garbage.


SEE ALSO
pbmtoescp2(1) , pbm(5)



AUTHOR
Copyright (C) 2003 by Ulrich Walcher (u.walcher@gmx.de).


HISTORY
escp2topbm was added to Netpbm in Release 10.18 (August 2003); it was created around the same time.



netpbm documentation Escp2topbm User Manual(0)


SEE ALSO
pbmtoescp2(1) , pbm(5)



AUTHOR
Copyright (C) 2003 by Ulrich Walcher (u.walcher@gmx.de).


HISTORY
escp2topbm was added to Netpbm in Release 10.18 (August 2003); it was created around the same time.



netpbm documentation Escp2topbm User Manual(0)

I've implemented this in our cups servers so that a NetWare-Printqueue sends the original ESC/P2 stream to a LPR-Gateway which re-routes the data to a CUPS-Backend and converts it to a PDF-File for the user.

Regards

Michael

michaelk 10-08-2015 09:12 AM

milede,
Welcome to LinuxQuestions.

Thank you, but I didn't say that no software existed. I would assume that escp2topbm is what the OP wanted.

dr.hgc 09-26-2020 02:59 PM

where is epsonps - convert an Epson printer file to POSTSCRIPT
 
from where can i download,
epsonps - convert an Epson printer file to POSTSCRIPT

I am working on RPi and want to interface passbook printer to RPi.


All times are GMT -5. The time now is 07:20 AM.