CUPS - setup and usage?

dickson iswslui at ust.hk
Tue Jan 25 01:36:46 PST 2011


> dickson wrote:
>
> > Dear all,
> >
> > Please help to verify my understanding about usage and setup of CUPS in
> > Red Hat (Linux). Thanks.
> >
> > Installed package
> > ---------------------
> > hal-cups-utils-0.5.2-8
> > libgnomecups-0.1.12-5
> > cups-libs-1.1.22-0.rc1.9.10
> > cups-1.1.22-0.rc1.9
> > cups-1.1.22-0.rc1.9.10
> >
> > If I setup a Epson dot matrix printer "abc" in CUPS with filter "zn-TW",
> >
> > 1. a printer set in CUPS can accept any document type (pdf, text with
> > Chinese characters) because CUPS will automatically convert it to ps
> > format. Is it right?
> >
> > 2. Or I must convert these file to ps first and then sent to that printer?
> >
> > 3. under /usr/lib/cups/filter/, a lot of program (texttops, ...etc) are
> > there. What is "option" when use these command? As I try to convert a
> > UTF-8 Chinese character text file to ps, ps is generated but only have
> > English character.
>
> I think you should upgrade at least to CUPS 1.3.x.
>
> Then it should be a matter of which font set you use for the texttops filter
> in your installation. In case you have questions then, I think I could give
> you some hints.
>
> Helge
>

Thanks for your help, Helge.
I install CUPS 1.4.6 and then try to print the pdf document directly. In version 1.4.6, there is no place/area for me to set the locale-filter. Does it mean that there is no need to manually set the filter. (Because in 1.1.2, I can set this printer queue to use zh_TW, the other use zh_CN)
For 1.4.6 CUPS, the print job still fails because the process "pdftops" fails during printing. The message is in the error_log of CUPS as follows:

*****************************************************************
D [25/Jan/2011:15:59:41 +0800] [Job 50] renderer PID kid4=21613
D [25/Jan/2011:15:59:41 +0800] [Job 50] renderer command: gs -q -dPARANOIDSAFER -dBATCH -dNOPAUSE -sOutputFile=- -sDEVICE=omni -sDeviceName=Epson_LQ_1050___360_dpi_ -sproperties=" Form=iso_a3_297.00x420.00mm InputTray=Tray-2 media=MEDIA_PLAIN Resolution=360x180 printmode=PRINT_MODE_1_ANY dither=dither=DITHER_LEVEL Rotation=Portrait" -
D [25/Jan/2011:15:59:41 +0800] [Job 50]
D [25/Jan/2011:15:59:41 +0800] [Job 50] Closing renderer
D [25/Jan/2011:15:59:41 +0800] [Job 50] foomatic-gswrapper: gs '-dPARANOIDSAFER' '-dBATCH' '-dNOPAUSE' '-sOutputFile=/dev/fd/3' '-sDEVICE=omni' '-sDeviceName=Epson_LQ_1050___360_dpi_' '-sproperties= Form=iso_a3_297.00x420.00mm InputTray=Tray-2 media=MEDIA_PLAIN Resolution=360x180 printmode=PRINT_MODE_1_ANY dither=dither=DITHER_LEVEL Rotation=Portrait' '/dev/fd/0' 3>&1 1>&2
D [25/Jan/2011:15:59:42 +0800] [Job 50] GNU Ghostscript 7.07 (2003-05-17)
D [25/Jan/2011:15:59:42 +0800] [Job 50] Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
D [25/Jan/2011:15:59:42 +0800] [Job 50] This software comes with NO WARRANTY: see the file PUBLIC for details.
D [25/Jan/2011:15:59:42 +0800] [Job 50] Loading NimbusRomNo9L-Regu font from /usr/share/fonts/default/Type1/n021003l.pfb... 2492060 1116166 1662616 356238 0 done.
D [25/Jan/2011:15:59:42 +0800] [Job 50] Using NimbusRomanNo9L-Regu font for NimbusRomNo9L-Regu.
D [25/Jan/2011:15:59:42 +0800] [Job 50] Loading NimbusSanL-Regu font from /usr/share/fonts/default/Type1/n019003l.pfb... 2867020 1460804 1682712 367446 0 done.
D [25/Jan/2011:15:59:42 +0800] [Job 50] Using NimbusSansL-Regu font for NimbusSanL-Regu.
D [25/Jan/2011:15:59:43 +0800] PID 21606 (/usr/lib/cups/filter/foomatic-rip) stopped with status 3!
D [25/Jan/2011:15:59:43 +0800] [Job 50] Error: /undefined in Unrecoverable
D [25/Jan/2011:15:59:43 +0800] [Job 50] Operand stack:
D [25/Jan/2011:15:59:43 +0800] [Job 50]
D [25/Jan/2011:15:59:43 +0800] [Job 50] Execution stack:
D [25/Jan/2011:15:59:43 +0800] [Job 50] %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--
D [25/Jan/2011:15:59:43 +0800] [Job 50] Dictionary stack:
D [25/Jan/2011:15:59:43 +0800] [Job 50] --dict:1073/1123(ro)(G)--   --dict:0/20(G)--   --dict:98/200(L)--
D [25/Jan/2011:15:59:43 +0800] [Job 50] Current allocation mode is local
D [25/Jan/2011:15:59:43 +0800] [Job 50] Last OS error: 2
D [25/Jan/2011:15:59:43 +0800] [Job 50] GNU Ghostscript 7.07: Unrecoverable error, exit code 1
D [25/Jan/2011:15:59:43 +0800] [Job 50] renderer return value: 1
D [25/Jan/2011:15:59:43 +0800] [Job 50] renderer received signal: 1
D [25/Jan/2011:15:59:43 +0800] [Job 50] Process dying with "Possible error on renderer command line or PostScript error. Check options.", exit stat: 3
D [25/Jan/2011:15:59:43 +0800] [Job 50] Possible error on renderer command line or PostScript error. Check options.
D [25/Jan/2011:15:59:43 +0800] [Job 50] tail process done writing data to STDOUT
D [25/Jan/2011:15:59:43 +0800] [Job 50] KID4 finished
D [25/Jan/2011:15:59:43 +0800] [Job 50] KID3 exited with status 3
D [25/Jan/2011:15:59:43 +0800] [Job 50] Renderer exit stat: 3
D [25/Jan/2011:15:59:43 +0800] [Job 50] Renderer process finished
D [25/Jan/2011:15:59:43 +0800] [Job 50] Killing process 21612 (KID3)
D [25/Jan/2011:15:59:43 +0800] [Job 50] Process dying with "Error closing renderer", exit stat: 3
D [25/Jan/2011:15:59:43 +0800] [Job 50] Error closing renderer
*****************************************************************


I am not sure that the failure reason is related to "Ghostscript" version or missing Chinese fonts, or others. Anyone know why?

Thanks a lot.




More information about the cups mailing list