LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2015, 07:43 AM   #1
akhilbaai
LQ Newbie
 
Registered: Aug 2015
Posts: 20

Rep: Reputation: Disabled
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 ?
 
Old 09-09-2015, 11:45 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
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.
 
Old 10-08-2015, 09:50 AM   #3
milede
LQ Newbie
 
Registered: Oct 2015
Posts: 1

Rep: Reputation: Disabled
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
 
Old 10-08-2015, 10:12 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
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.
 
  


Reply

Tags
cups, emulation, epson, printers


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ESC/P commands via terminal to USB connected matrix printer ralfbutler Linux - Software 7 05-12-2015 10:35 PM
[SOLVED] Epson L120 Doesn't Print with Error: "/opt/epson-inkjet-printer-201310w/cups/lib/filt malekmustaq Linux - Newbie 3 09-08-2014 03:43 PM
How to send Epson ESC/P sequences through terminal? pbhat Programming 4 03-19-2011 02:42 PM
ESC/POS printer in Linux : Very Urgent! VirTualLoPeZ Linux - Newbie 2 10-19-2006 04:27 PM
Epson Printer Tools edwardp Linux - Hardware 0 05-20-2004 08:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration