From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frantisek Hanzlik Subject: Re: printing Date: Sun, 28 Nov 2010 03:20:42 +0100 Message-ID: <4CF1BC7A.2030306@hanzlici.cz> References: <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> <4CF16557.90805@hanzlici.cz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010605010103000203030808" Return-path: In-Reply-To: Sender: linux-msdos-owner@vger.kernel.org List-ID: To: Vedran Vucic Cc: linux-msdos This is a multi-part message in MIME format. --------------010605010103000203030808 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Vedran Vucic wrote: > Hello, > > Please find attached output of my DOS application. > Fonts are in /usr/local/ghostpdl-8.71/urwfonts > > I am not sure that pcl6 is aware oftheirlocation. > > I still have the same error message. > > Thanks, > > vedran > > > > > On Sat, Nov 27, 2010 at 9:08 PM, Frantisek Hanzlik wrote: >> Vedran Vucic wrote: >>> Hello, >>> >>> I installed ghostpdl properly. >>> When I do: >>> $_lpt1='cat >/tmp/x.pcl' >>> I get in /tmp folder file that is output from the program and it is >>> actually text file. >>> >>> When I do other command: >>> pcl6 -sDEVICE=pswrite -sPAPERSIZE=a4 -sOutputFile=x.ps x.pcl >>> I got the following error message: >>> Warning interpreter exited with error code -1 >>> Flushing to end of job >>> >>> Obviously interpreter is an issue. >>> >>> I think that we are very close to the solution. DO you have any idea >>> about -1 error code of interpreter? >>> >>> Thanks, >>> >>> Vedran >>> >>> >>> 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 entered >>>>> 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 there >>>>> 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 specify >>>> absolute path, e.g. $_lpt1='/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='cat >/tmp/x.pcl' >>>> >>>> and verify that file "/tmp/x.pcl" is rightly created and is in PCL format. >>>> >>>> >>>> 2) verify that pcl6 command work right by manually creating postscript >>>> file from previous PCL: >>>> >>>> pcl6 -sDEVICE=pswrite -sPAPERSIZE=a4 -sOutputFile=x.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='....'" command in >>>> dosemu.conf, as you have now. >>>> >>>> !!ATTENTION!! Sorry for mistake in all my previous mails: I incorrectly >>>> specify "-sDEVICE=" parameter to "pdfwrite", which is obviously bad (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='pcl6 -sDEVICE=pswrite -dNOPAUSE -sPAPERSIZE=a4 >>>> -sOutputFile="|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_switches >> 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. My pcl6 works likely OK (see its output at: http://www.hanzlici.cz/tmp/x.ps.bz2 ), there is probably some wrong in your ghostpdl package. Regarding TTF fonts location - problem may be there, you should correct their path, this which is defined in ghostpdl source codes seems appropriate for windos build. I have located fonts in "/usr/share/fonts/urw-ttf/", then I patched "pl/pjparse.c" as you can see in attached patch (there are some other smaller patches, as I want use zlib and png system shared libraries etc., and use some paths as conventional in my distro (Fedora). SPEC file, which describe how I build ghostpdl and font RPM packages, is contained in source rpm (http://www.hanzlici.cz/packages/fedora/ghostpdl/14/ghostpdl-8.71-2.fc14.src.rpm) or i got it for you to http://www.hanzlici.cz/tmp/ghostpdl-8.71-fc14.spec Notice instaled libpaper-devel, freeglut-devel, expat-devel, libjpeg-devel, libpng-devel and zlib-devel packages. At http://www.hanzlici.cz/packages/fedora/ghostpdl/14/ are my ghostpdl RPM packages for current Fedora version (14; I have at this site dosemu RPM packages as well) Hope this help. Franta Hanzlik --------------010605010103000203030808 Content-Type: application/x-gzip; name="ghostpdl-fedora-8.71.patch.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ghostpdl-fedora-8.71.patch.gz" H4sICPm+7UwAA2dob3N0cGRsLWZlZG9yYS04LjcxLnBhdGNoAJVWbW/iRhD+XP+KUe5OlxSM X3hLqFDiA44LhQQBitpUFVrsBZyz15a9DpBT/3tn/dIYYnIUiV3PzDPj3dmZx2vZyyXI0SKA 1doLuW858mWlqVU8x1JWobIgIVWilWk69qLiku8HKEY3RShJluXT4v2iq+qlrGmyWgdda9W0 lq5X1OwHJVVTValUKp32XoymqXIcELRqS2u2aupeNHybdHMDck0vN6EUjzc3Eoz7k96weztp VySQYDCddITw5NOVJE+/GZPefDDu9du4kpykIRLn+Z0x6iVY9B3f9VNvXJLPVpJ1Sn6ZvZVx Fz9LcA72swznoCLFVyLFIimNVl1t6Zf/N8X74fI5VrVWVS/McV0va1UoJZPI8u3ddGYMh/Px 5L4/MUbQho/nqe4CZBea9forqGvMjDeIRq2GSZb9gC7tLVqVKAwUxzOJI5X2lBLQLTXn/+k+ niePFxIsbG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