-----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-----
# Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: georg.gottleu...@uni-ulm.de-20110831125012-\ # qn4npav5fdwfr2sp # target_branch: bzr://bzr.sv.gnu.org/pdf/libgnupdf/trunk/ # testament_sha1: c2be6e7e2cc6bb21d576fed178f7e9b396f6c710 # timestamp: 2011-08-31 14:50:39 +0200 # base_revision_id: aleksan...@gnu.org-20110829194024-0zfti9i7y1quev38 # # Begin patch === modified file 'torture/testdata/TD00001.desc' --- torture/testdata/TD00001.desc 2010-04-20 10:57:53 +0000 +++ torture/testdata/TD00001.desc 2011-08-31 12:50:12 +0000 @@ -1,1 +1,1 @@ -JBIG2 global segment for the page @file{TD00002}. +JBIG2 global segments for the page @file{TD00002}. === modified file 'torture/testdata/TD00002.desc' --- torture/testdata/TD00002.desc 2010-04-20 10:57:53 +0000 +++ torture/testdata/TD00002.desc 2011-08-31 12:50:12 +0000 @@ -1,1 +1,1 @@ -JBIG2 page using global segment @file{TD00001}. +JBIG2 page using global segments @file{TD00001}. === modified file 'torture/testdata/TD00003' Binary files torture/testdata/TD00003 2009-08-11 14:06:26 +0000 and torture/testdata/TD00003 2011-08-31 12:50:12 +0000 differ === modified file 'torture/testdata/TD00003.desc' --- torture/testdata/TD00003.desc 2009-01-10 00:45:53 +0000 +++ torture/testdata/TD00003.desc 2011-08-31 12:50:12 +0000 @@ -1,2 +1,2 @@ Decoded JBIG2 page bitmap from page @file{TD00002} and global -segment @file{TD00001}. +segments @file{TD00001}. # Begin bundle IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWVYY04YAA4v/5fzU4ABRY//3 V/CEAL////rAgMAAQEAAAYAA4AZcT4AANZAABoQSiaSeqekyGmh6gaeppp6nqeppoAAA00GNQNBw 00wQyGmmRkwgGmgDCaNMmABA0OGmmCGQ00yMmEA00AYTRpkwAIGgkRTSn6p6akeo/VGZTTQGnpAY QDTQAYmhg9UOGmmCGQ00yMmEA00AYTRpkwAIGgkkEaCMAIEyRlPFJ+lPwiGiNDID1Ghsoqf5hWdP mmSxgPmvcy2xjQPlIRAxtNsYhsBptZklChI93v5TLj5+mIiNyM81UzWwx14tbf4djL1qJQNMYF76 +rmkJ8HfWG2vzoKaP0T5Sh0SwHSpmz3nj0QukByqjEd5mLgCFzb/mSjrkhbDwkFSW+g1h2JoWXui e9cOIwTtfq4IgrQPf7jtwsBlxvZB8iLgIx977vwu5Pp5rNPDHsCEGy1VY34oJmDYPchOHJm+Nf1L uP9hU4qCsWcDk5GIKYORQHHlI7floC5VoUBfRax/RC3uocOHFqF/wWYba7w3hU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