From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alain M." Subject: Emulating a laser printer (was Epson Printing) Date: Wed, 08 Nov 2006 19:03:17 -0200 Message-ID: <45524615.4050005@pobox.com> References: <455125B2.9070009@pobox.com> <45518F3C.8060700@my.home> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <45518F3C.8060700@my.home> Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: dosEmu-list Hi Jan, Thanks for your reply :) :) I installed GhostPCL reconfigured my DOS program and it is working wonderfully. So here is what I did: 1) download and compile GhostPCL (http://www.artifex.com/downloads/) 2) Configure Dosemu with this to generate PS (faster then PDF) and convert from stdin to stdout sending to printer: $_printer_command = "pcl6 -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=- - | lpr -P EpsonC87" I only tested with a simple DOS program, I will test with some CAD later. As for Epson PS, maybe someday I will test it. I haven't tested it because it is a very old source code which will probably take some work to use with new compilers. Alain Jan Willem Stumpel escreveu: > I haven't, but this approach is sound in principle. I do a similar > thing with the HP (PCL) control language. > > My Brother printer (with its drivers) only understands > Postscript and pdf. I made an input filter (for lprng) that > changes PCL to pdf, using pcl2pdf, which is part of GhostPCL > (http://www.artifex.com/downloads/). I tell my DOS programs that > they are talking to an HP Laserjet. Pure "raw text" is first > changed into PCL by prepending a PCL initialisation string. This > works. DOS programs can print both text and graphics.