pdf-devel
[Top][All Lists]
Advanced

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

[pdf-devel] JBIG2: torture/testdata/TD0000* and jbig2dec


From: Georg Gottleuber
Subject: [pdf-devel] JBIG2: torture/testdata/TD0000* and jbig2dec
Date: Wed, 31 Aug 2011 14:54:27 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.17) Gecko/20110705 Lightning/1.0b2 Lanikai/3.1.10

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

maybe someone else is working on JBIG2 support. If so this information
might be useful to him/her.

1.) The test data for JBIG2 (torture/testdata/TD0000*) is not correct.
With some search I found the source of the TD0000* files: It is the
second page of this document:
(http://www.circuitwizard.de/pdftex/old-jbig2/foo.pdf)

The TD00003 file is claimed as the result of decoding TD00001 and
TD00002, but if you attach the BPM header it shows an empty box.
Acroread and poppler are showing a JBIG2 halftone gradient.

I extracted the decoded bitmap from poppler (with pdfimages) and checked
the halftones against a screenshot from Adobe Reader. It's the same
bitmap.

Attached you find a patch with the correct TD00003 file.

2.) Even if you compile jbig2dec-0.11 for yourself with -DJBIG2_HALFTONE
enabled, the output of jbig2dec is with an empty box (without the
halftones). So the problem about halftones is not caused by the GNU PDF
code. This will cause a permanent failure of the unit test I am going to
create, until jbig2dec is able to handle halftone.

3.) I was confused by torture/testdata/TD0000*.desc that makes
statements about the global segment (singular). Later I found out, that
TD00001 contains 2 global segments. Therefore I changed the description
files to plural. (Of course it is a small thing, but it cost me hours of
debugging.)

Regards,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5eLwMACgkQ5sLITM1qIaIUJwCgqzWUI3y96J6YxWZTsxc5i9CE
h8wAnApXcG/QPTCgo79pd2MnMFyrjPDZ
=j4HO
-----END PGP SIGNATURE-----

Attachment: testdata_patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]