From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frantisek Hanzlik Subject: Re: printing Date: Sat, 27 Nov 2010 21:08:55 +0100 Message-ID: <4CF16557.90805@hanzlici.cz> References: <4CE5C16B.1070402@adinet.com.uy> <4CE7C3CC.6000601@adinet.com.uy> <4CEAFD7B.1090606@adinet.com.uy> <4CEC1CE5.8030208@sbcglobal.net> <4CEF8C77.4070001@hanzlici.cz> <4CF12D8D.7060307@hanzlici.cz> <4CF1436E.9050803@hanzlici.cz> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-msdos-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="utf-8" To: Vedran Vucic Cc: linux-msdos Vedran Vucic wrote: > Hello, >=20 > I installed ghostpdl properly. > When I do: > $_lpt1=3D'cat >/tmp/x.pcl' > I get in /tmp folder file that is output from the program and it is > actually text file. >=20 > When I do other command: > pcl6 -sDEVICE=3Dpswrite -sPAPERSIZE=3Da4 -sOutputFile=3Dx.ps x.pcl > I got the following error message: > Warning interpreter exited with error code -1 > Flushing to end of job >=20 > Obviously interpreter is an issue. >=20 > I think that we are very close to the solution. DO you have any idea > about -1 error code of interpreter? >=20 > Thanks, >=20 > Vedran >=20 >=20 > On Sat, Nov 27, 2010 at 6:44 PM, Frantisek Hanzlik wrote: >> Vedran Vucic wrote: >>> Hello, >>> >>> When I corrected as you mentioned dosemu started normally. I enter= ed >>> my DOS application and tried toprint, but in terminal I have seen >>> error message that pcl6 command is not found. >>> Any suggestion? Any link or slink needed for that purpose? Is ther= e >>> any path tweaking required? >> >> You wrote before You build ghostpdl package itself. >> Was compiled properly? >> >> Was properly installed? >> >> Is pcl6 binary runnable? >> >> Is pcl6 binary in PATH in dosemu environment? (when no, you can spec= ify >> absolute path, e.g. $_lpt1=3D'/my/path/pcl6 ... >> >> You should probably in this phase tune both things, dosemu and >> pcl6/ghostpdl, separately: >> >> 1) in dosemu.conf lpt specification configure output to normal file: >> >> $_lpt1=3D'cat >/tmp/x.pcl' >> >> and verify that file "/tmp/x.pcl" is rightly created and is in PCL f= ormat. >> >> >> 2) verify that pcl6 command work right by manually creating postscri= pt >> file from previous PCL: >> >> pcl6 -sDEVICE=3Dpswrite -sPAPERSIZE=3Da4 -sOutputFile=3Dx.ps x.pcl >> >> and again verify that file "/tmp/x.pcl" is rightly created and is in >> postscript format >> >> >> 3) verify this postscript file printing: >> >> lpr -P Laserprinter x.ps >> >> >> When all this steps works, You can set final "$_lpt1=3D'....'" comma= nd in >> dosemu.conf, as you have now. >> >> !!ATTENTION!! Sorry for mistake in all my previous mails: I incorrec= tly >> specify "-sDEVICE=3D" parameter to "pdfwrite", which is obviously ba= d (I >> clipboard copy this from my cfg, where I use pcl6 to create PDF >> documents from DOS print output). >> Right parameter value should be "pswrite": >> >> $_lpt1=3D'pcl6 -sDEVICE=3Dpswrite -dNOPAUSE -sPAPERSIZE=3Da4 >> -sOutputFile=3D"|lpr -P YourPrinter1" -' >> >> FH I never got with ghostpdl to any bigger problems and not sure how diagnose your. You can try some pcl6 (gs) debug switches, here is their doc: http://svn.ghostscript.com/ghostscript/trunk/gs/doc/Use.htm#Debug_switc= hes You can study ghostpdl source code. Can you send me (or past somewhere for download) your PCL output from DOS app? I can probe convert it with my ghostpdl build. Have you installed and rightly configured URW TTF fonts? ghostpdl package require them. S pozdravem =46ranti=C5=A1ek Hanzl=C3=ADk Lu=C4=8Dn=C3=AD 502 Linux/Unix/LAN/Internet Tel: +420-3= 73729699 33209 =C5=A0t=C4=9Bnovice e-mail:it@hanzlici.cz Fax: +420-3= 73729699 Czech Republic http://hanzlici.cz/ GSM: +420-604117319 Tento mail neobsahuje viry, byl odesl=C3=A1n z opera=C4=8Dn=C3=ADho sys= t=C3=A9mu Linux -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html