Re: strange gs problem: unicode encoding problem with pdf (?)
On Sun, May 18, 2008 at 23:30:15 +0200, Rainer Dorsch wrote:
> Am Sonntag, 18. 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:
[...]
> Nevertheless the correct one also does not print from kpdf:
>
> rd@blackbox:~/tmp.nobackup$ pdfinfo KKA-DKB.pdf
> Author: User
> Creator: DocBridge Mill/cpcold 2.05.01 (Apr 3 2008)
> Producer: Compart MFFPDF I/O Filter 2008-04-03 01:29:23
> CreationDate: Wed Apr 23 03:41:11 2008
> ModDate: Wed Apr 23 03:41:11 2008
> Tagged: no
> Pages: 2
> Encrypted: no
> Page size: 612 x 841.9 pts
> File size: 33527 bytes
> Optimized: no
> PDF version: 1.3
> rd@blackbox:~/tmp.nobackup$ file KKA-DKB.pdf
> KKA-DKB.pdf: PDF document, version 1.3
> rd@blackbox:~/tmp.nobackup$
>
>
> /var/log/cups/error_log contains:
>
> E [18/May/2008:23:25:04 +0200] PID 16470 (/usr/lib/cups/filter/foomatic-rip)
> stopped with status 3!
> E [18/May/2008:23:25:04 +0200] [Job 117] Job stopped due to filter errors.
>
>
> The file prints from the linux acroread version.
>
> Is there a way to gather useful debug data?
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.)
You can also try to convert the file to postscript yourself, with pdf2ps
(from ghostscript) or with pdftops (from poppler-utils or xpdf-utils).
Maybe one of these tools can produce working postscript. (The one from
ghostscript should in principle be identical to what foomatic-rip itself
does to the PDF file, though.)
If all else fails then you can use pdftoppm (from poppler-utils or
xpdf-utils) to generate bitmap images of the pages of the PDF and print
those. (You can set an appropriate resolution with the "-r" option.)
--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |
Reply to: