[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: strange gs problem: unicode encoding problem with pdf (?)



On Sat, May 31, 2008 at 16:31:26 +0200, Rainer Dorsch wrote:
> > On Tue, May 20, 2008 at 22:41:26 +0200, Rainer Dorsch wrote:
> > > Am Montag, 19. Mai 2008 schrieb Florian Kulzer:
> > > > > > On Sat, May 17, 2008 at 23:47:06 +0200, Rainer Dorsch wrote:
> > > > > > > Hello,
> > > > > > >
> > > > > > > I have a pdf file here which
> > > > > > >
> > > > > > > - Displays perfectly with kpdf
> > > > > > > - Does not print from kpdf. This is because gs fails with this
> > > > > > > file:

[...]

> > > > You can try to run
> > > >
> > > > foomatic-rip -v --ppd /etc/cups/ppd/$PRINTER.ppd KKA-DKB.pdf >
> > > > test.printer
> > > >
> > > > and hope for helpful error messages.
> > > >
> > > > (Replace $PRINTER so that you get the correct name of the ppd file for
> > > >  your printer. This ppd file should be in /etc/cups/ppd/ and have the
> > > >  same name as the printer in CUPS.)

[...]

> There are two ghostscript commands:
> 
> rd@blackbox:~/tmp.nobackup$ grep gs foomatic-rip.err
> renderer command: 
> gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="HP 
> LaserJet" -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -dDuplex=false -r300 -sIjsParams=Quality:Quality=0,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=0,PS:MediaPosition=7 -dIjsUseOutputFD -sOutputFile=- -
> foomatic-gswrapper: 
> gs '-sstdout=%stderr' '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=HP 
> LaserJet' '-dDEVICEWIDTHPOINTS=595' '-dDEVICEHEIGHTPOINTS=842' '-dDuplex=false' '-r300' '-sIjsParams=Quality:Quality=0,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=0,PS:MediaPosition=7' '-dIjsUseOutputFD' '-sOutputFile=%stdout' '-_'
> rd@blackbox:~/tmp.nobackup$
> 
> I put the complete output file (STDERR) to 
> 
> http://www.alzental-castle.de/~rd/foomatic-rip.err
> 
> BTW, gs displays the pdf file as well as acroread or kpdf. Is it possible that 
> the problem has something todo with the hplip/hpijs backend?

The error messages in one of your earlier mails show that you are using
the Lenny/Sid version of ghostscript (8.62), but your PPD file seems to
be outdated (it is from HPLIP 2.7.10; the current version of hpijs-ppds
is 2.8.4 in Lenny and 2.8.5 in Sid). Maybe upgrading and/or updating to
the newest PPD in the CUPS setup will fix the problem. (Sometimes it can
necessary to remove the printer and add it again with the newest
driver.)

[...]

> The file is not secret and I would be ok with sharing it to individual 
> developers (without any formal agreement), but I would not want to post it 
> unprotected on an web page. If you are interested I would send it to you in a 
> private mail or send you an URL.

I would rather not receive any sensitive information. Can you generate a
new file from the same form with bogus data filled in? 

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


Reply to: