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

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



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:
> >
> > rd@dell:/tmp$ gs DKB.pdf
> > GPL Ghostscript 8.62 (2008-02-29)
> > Copyright (C) 2008 Artifex Software, Inc.  All rights reserved.
> > This software comes with NO WARRANTY: see the file PUBLIC for details.
> > Error: /syntaxerror in -file-
>
> [...]
>
> > GPL Ghostscript 8.62: Unrecoverable error, exit code 1
> > rd@dell:/tmp$
> >
> > (I do not want to post the file, because it contains credit card data).
> >
> > - What surprises me is that acroread complains that the file is an
> > unsupported type or contains errors.
> >
> > - since the file works on windows version of acrobat (downloaded from the
> > same source), I though it has something todo with the character encoding:
> >
> > rd@dell:/tmp$ file DKB.pdf
> > DKB.pdf: ISO-8859 text, with very long lines, with CRLF, LF line
> > terminators
>
> That does not seem to be a PDF file at all, but rather a plain text
> file. The output for a PDF file should be something like this:
> "PDF document, version 1.X"
>
> How did you generate this file, or where does it come from?
>
> > Any inside what could go wrong here is very welcome. Also ideas on how to
> > get better debug information ....
>
> The output of
>
> pdfinfo DKB.pdf
>
> might help.

Florian,

thanks for your reply, you were perfectly right, I had a wrong 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?


Thanks,
Rainer

-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdorsch@web.de
jabber: rdorsch@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


Reply to: