Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Helge Blischke Newsgroups: comp.lang.postscript Subject: Re: Writing a Ghostscript uniprint driver Followup-To: comp.lang.postscript Date: Thu, 31 Jul 2014 12:45:48 +0200 Lines: 49 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: individual.net 16aqoWu+vgqsIDYZPqnlZw5wltrHtPEVIzldFI5xNGBQTv0twG Cancel-Lock: sha1:4dXllBaEOElQolxvDqMNjYg04mo= User-Agent: KNode/0.99.01 Xref: csiph.com comp.lang.postscript:1936 Stewart C. Russell wrote: > D]ZDze,9L$TL)$oI8]\U6.`>Ou8&TrrpF{Jg,>_N\'P$\Q}d)`DibeD\0%~Uw; > zte > `9Hn7f@0|PTu%k?pcc9JO"yb40)KJIkkYU6L.T`,8~|\i% > User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 > git://git.gnome.org/pan2) > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > Hi, > > I've recently started experimenting with small roll-fed thermal printers, > a bit like this one: . They all > understand variants of Epson ESC-POS, which in turn is very similar to > the ESC-P and ESC-P/2 command sets of Epson's older impact printers. > > Ghostscript's uniprint driver - http://ghostscript.com/doc/7.07/ > Devices.htm#Uniprint - looks perfect for supporting these little devices. > Unfortunately, there's precious little documentation on this elderly > "community supported" driver. Particularly: > > * There's little explanation of the upOutputFormat option > * most of the parameters for terms like margins and print density are > only hinted at, and never explained. Unsetting them, or removing them > causes the output to fail. > > These thermal printers are incredibly simple: 384 monochrome pixels > across, 8 pixels/mm, effectively unlimited print length; printed (slowly, > at 9600 baud) as 24 pixel deep by up to 384 pixel wide band. > > Any suggestions, please, as to where I might find clearer guidelines? > > thanks, > Stewart > > (if anyone wishes to print to these from a bitmap, I wrote a little > Python filter that should work on most of them: https://gist.github.com/ > scruss/95c61c9a1501ada2a6c5 ) Read the item 13.3 Godzilla's guide to the creation of Unified Printer Parameter (.upp) files and the following chapters. Helge