[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] Bug in LZW filter?
From: |
Georg Gottleuber |
Subject: |
Re: [pdf-devel] Bug in LZW filter? |
Date: |
Fri, 28 Oct 2011 10:05:36 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.20) Gecko/20111001 Lightning/1.0b2 Lanikai/3.1.12 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
On 27.10.2011 11:59, Juan Pedro Bolívar Puente wrote:
> Do you have also test cases that fail without the changes and succeed
> otherwise?
Take any LZW encoded PDF stream bigger 1K. It will fail decoding without
my changes.
As mentioned in my email from 2011-09-20:
> I tested with 11 different LZW-Streams from 8
> different PDFs:
> With my fixes all 11 LZW-Streams are decoded well (without: none)
> With my fixes all 3 Ghostscript Streams are encoded to the same bytes
> (without: none)
My setup for testing the decoder (Earlychange = 1; default):
(example PDF: http://www.kripsy.de/texte/sp/rs_sit_kripsy.pdf)
Extract encoded LZW-Stream
$ pdfshow -e -b rs_sit_kripsy.pdf 3 > lzwstream
Decode with GNU PDF
$ ./pdf-filter -i lzwstream -o lzwdecoded.gnupdf --lzwdec --lzw-earlychange
Decode with
$ pdfshow -b rs_sit_kripsy.pdf 3 > lzwdecoded.mupdf
Compare both outputs:
$ vbindiff lzwdecoded.gnupdf lzwdecoded.mupdf
Regards,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk6qYlAACgkQ5sLITM1qIaKARACfcbrokmFIUR59+LxZSsOklwCG
m3wAoI3fq+O+9hY85y1PLP7XROkH9Kfk
=qB/H
-----END PGP SIGNATURE-----