[cups] Printing a prn file using cupsffi

Rakesh rakesh.joshi at pickingo.com
Sat Oct 10 01:10:06 PDT 2015


Helge Blischke <helgeblischke at ...> writes:

> 
> A .prn file is usually a Windows print job redirected to a file. The data 
format depends on the
> type of printer which was used to produce the file and therefore is 
device specific.
> Please post (at least the first some 1K of) the file so that I (or 
others) can check if this file
> can be printed with cups.
> 
> > Am 09.10.2015 um 12:25 schrieb Rakesh <rakesh.joshi at ...>:
> > 
> > Hello,
> > 
> > I am trying to print .prn file using cupsffi ruby gem from my ubuntu 
system, 
> > but it treats .prn file as normal text file.
> > 
> > Please suggest!
> > 
> > 
> > 
> > 
> > _______________________________________________
> > cups mailing list
> > cups at ...
> > https://www.cups.org/mailman/listinfo/cups
> 


I am using barcode printer (Zebra-Technologies-ZTC-GT800-(EPL)), below is 
the content of my prn file.

^XA
^SZ2^JMA
^MCY^PMN
^PW822^MTT
^MNW
^MMT
~SD20^MD0
^JZY
^LH0,0^LRN
^XZ
^XA
^FO163,27
^BY3^BCN,80,N,N^FD>;12345678^FS
^FT194,137
^CI0
^A0N,34,47^FD12345678^FS
^FT476,78
^A0N,34,47^Test^FS
^PQ1,0,1,Y
^XZ

You can test it by pasting above content in some text file and save with 
.prn extn. 

Thanks in advance.



More information about the cups mailing list