JBIG2 Decoder Compatibility Report

JBIG2 is a compression standard for bi-level (black & white) images. Every PDF viewer implements a JBIG2 decoder. This page shows results for various JBIG2 decoders against 107 test files from the SerenityOS repository. Each test file encodes the same 399×400 1-bit bitmap. Decoders that take a PDF as input use a thin PDF wrapper around the raw JBIG2 data.

Download all test files: jbig2, pdf.

Tests

107

jbig2dec

79 / 28 / 0
jbig2dec 0.20

pdfium

107 / 0 / 0

mupdf

79 / 28 / 0
mutool version 1.23.3

preview

78 / 28 / 1
sips-316

ghostscript

79 / 28 / 0
10.05.1

poppler

89 / 18 / 0
pdftocairo version 25.11.0

serenity-image

107 / 0 / 0
Version 1.0

pdfjs

61 / 45 / 1
pdfjs-dist 5.4.624

itu-ref

19 / 37 / 51

hayro-jbig2

107 / 0 / 0

Green () = pixel-perfect match against the reference, red () = mismatch (hover for diff), gray () = error or timeout.

Test jbig2dec73% pdfium100% mupdf73% preview72% ghostscript73% poppler83% serenity-image100% pdfjs57% itu-ref17% hayro-jbig2100%
bitmap-composite-and-xnor-halftonejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-composite-and-xnor-halftone.png build/pdfs/bitmap-composite-and-xnor-halftone.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-composite-and-xnor-halftone.pdf build/output/poppler/bitmap-composite-and-xnor-halftone

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-composite-and-xnor-halftone.pdf build/output/pdfjs/bitmap-composite-and-xnor-halftone.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: operator 1 is not supported". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-composite-and-xnor-halftone.jbig2 build/output/itu-ref/bitmap-composite-and-xnor-halftone.bmp
bitmap-composite-and-xnor-refinejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-composite-and-xnor-refine.pbm build/jbig2/bitmap-composite-and-xnor-refine.jbig2

stderr:

jbig2dec FATAL ERROR unhandled segment type 'intermediate generic region' (NYI) (segment 0x00000001) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000001) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-composite-and-xnor-refine.png build/pdfs/bitmap-composite-and-xnor-refine.pdf

stderr:

page build/pdfs/bitmap-composite-and-xnor-refine.pdf 1warning: jbig2dec error: unhandled segment type 'intermediate generic region' (NYI) (segment 1) warning: jbig2dec warning: failed to decode; treating as end of file (segment 1) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-composite-and-xnor-refine.png -dBATCH -dNOPAUSE build/pdfs/bitmap-composite-and-xnor-refine.pdf

stderr:

jbig2dec FATAL ERROR decoding image: unhandled segment type 'intermediate generic region' (NYI) (segment 0x01) jbig2dec WARNING failed to decode; treating as end of file (segment 0x01) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-composite-and-xnor-refine.pdf build/output/pdfjs/bitmap-composite-and-xnor-refine.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type IntermediateGenericRegion(36) is not implemented". Warning: Dependent image isn't ready yet

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-composite-and-xnor-refine.jbig2 build/output/itu-ref/bitmap-composite-and-xnor-refine.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-composite-and-xnor-textjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-composite-and-xnor-text.pdf build/output/pdfjs/bitmap-composite-and-xnor-text.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: operator 1 is not supported". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-composite-and-xnor-text.jbig2 build/output/itu-ref/bitmap-composite-and-xnor-text.bmp
bitmap-composite-and-xnorjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-composite-and-xnor.pdf build/output/pdfjs/bitmap-composite-and-xnor.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: operator 1 is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-composite-and-xnor.jbig2 build/output/itu-ref/bitmap-composite-and-xnor.bmp
bitmap-composite-or-xor-replace-halftonejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-composite-or-xor-replace-halftone.pdf build/output/pdfjs/bitmap-composite-or-xor-replace-halftone.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: operator 4 is not supported". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-composite-or-xor-replace-halftone.jbig2 build/output/itu-ref/bitmap-composite-or-xor-replace-halftone.bmp
bitmap-composite-or-xor-replace-refinejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-composite-or-xor-replace-refine.pbm build/jbig2/bitmap-composite-or-xor-replace-refine.jbig2

stderr:

jbig2dec FATAL ERROR unhandled segment type 'intermediate generic region' (NYI) (segment 0x00000001) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000001) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-composite-or-xor-replace-refine.png build/pdfs/bitmap-composite-or-xor-replace-refine.pdf

stderr:

page build/pdfs/bitmap-composite-or-xor-replace-refine.pdf 1warning: jbig2dec error: unhandled segment type 'intermediate generic region' (NYI) (segment 1) warning: jbig2dec warning: failed to decode; treating as end of file (segment 1) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-composite-or-xor-replace-refine.png -dBATCH -dNOPAUSE build/pdfs/bitmap-composite-or-xor-replace-refine.pdf

stderr:

jbig2dec FATAL ERROR decoding image: unhandled segment type 'intermediate generic region' (NYI) (segment 0x01) jbig2dec WARNING failed to decode; treating as end of file (segment 0x01) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-composite-or-xor-replace-refine.pdf build/output/pdfjs/bitmap-composite-or-xor-replace-refine.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type IntermediateGenericRegion(36) is not implemented". Warning: Dependent image isn't ready yet

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-composite-or-xor-replace-refine.jbig2 build/output/itu-ref/bitmap-composite-or-xor-replace-refine.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-composite-or-xor-replace-textjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-composite-or-xor-replace-text.pdf build/output/pdfjs/bitmap-composite-or-xor-replace-text.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: operator 4 is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-composite-or-xor-replace-text.jbig2 build/output/itu-ref/bitmap-composite-or-xor-replace-text.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-composite-or-xor-replacejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-composite-or-xor-replace.pdf build/output/pdfjs/bitmap-composite-or-xor-replace.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: operator 4 is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-composite-or-xor-replace.jbig2 build/output/itu-ref/bitmap-composite-or-xor-replace.bmp
bitmap-customat-tpgdonjbig2pdfjson
bitmap-customatjbig2pdfjson
bitmap-halftone-10bpp-mmrjbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone-10bpp-mmr.jbig2 build/output/itu-ref/bitmap-halftone-10bpp-mmr.bmp
bitmap-halftone-10bppjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone-10bpp.jbig2 build/output/itu-ref/bitmap-halftone-10bpp.bmp
bitmap-halftone-compositejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-halftone-composite.pbm build/jbig2/bitmap-halftone-composite.jbig2

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-halftone-composite.png build/pdfs/bitmap-halftone-composite.pdf

stderr:

page build/pdfs/bitmap-halftone-composite.pdf 1

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-halftone-composite.png build/pdfs/bitmap-halftone-composite.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-halftone-composite.png -dBATCH -dNOPAUSE build/pdfs/bitmap-halftone-composite.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-halftone-composite.pdf build/output/poppler/bitmap-halftone-composite

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-halftone-composite.pdf build/output/pdfjs/bitmap-halftone-composite.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: operator "2" is not supported in halftone region". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone-composite.jbig2 build/output/itu-ref/bitmap-halftone-composite.bmp
bitmap-halftone-globaljbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone-global.jbig2 build/output/itu-ref/bitmap-halftone-global.bmp
bitmap-halftone-gridjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone-grid.jbig2 build/output/itu-ref/bitmap-halftone-grid.bmp
bitmap-halftone-refinejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-halftone-refine.pbm build/jbig2/bitmap-halftone-refine.jbig2

stderr:

jbig2dec WARNING failed to find reference bitmap (segment 0x00000003) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000003) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-halftone-refine.png build/pdfs/bitmap-halftone-refine.pdf

stderr:

page build/pdfs/bitmap-halftone-refine.pdf 1warning: jbig2dec warning: failed to find reference bitmap (segment 3) warning: jbig2dec warning: failed to decode; treating as end of file (segment 3) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-halftone-refine.png -dBATCH -dNOPAUSE build/pdfs/bitmap-halftone-refine.pdf

stderr:

jbig2dec WARNING failed to find reference bitmap (segment 0x03) jbig2dec WARNING failed to decode; treating as end of file (segment 0x03)

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-halftone-refine.pdf build/output/pdfjs/bitmap-halftone-refine.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type IntermediateHalftoneRegion(20) is not implemented". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone-refine.jbig2 build/output/itu-ref/bitmap-halftone-refine.bmp
bitmap-halftone-skip-dummyjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-halftone-skip-dummy.png build/pdfs/bitmap-halftone-skip-dummy.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-halftone-skip-dummy.pdf build/output/poppler/bitmap-halftone-skip-dummy

stderr:

Syntax Error (1079): Bad pattern bitmap

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-halftone-skip-dummy.pdf build/output/pdfjs/bitmap-halftone-skip-dummy.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: skip is not supported". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone-skip-dummy.jbig2 build/output/itu-ref/bitmap-halftone-skip-dummy.bmp
bitmap-halftone-skip-grid-template1jbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-halftone-skip-grid-template1.png build/pdfs/bitmap-halftone-skip-grid-template1.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-halftone-skip-grid-template1.pdf build/output/poppler/bitmap-halftone-skip-grid-template1

stderr:

Syntax Error (1398): Bad pattern bitmap

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-halftone-skip-grid-template1.pdf build/output/pdfjs/bitmap-halftone-skip-grid-template1.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: skip is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone-skip-grid-template1.jbig2 build/output/itu-ref/bitmap-halftone-skip-grid-template1.bmp
bitmap-halftone-skip-grid-template2jbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-halftone-skip-grid-template2.png build/pdfs/bitmap-halftone-skip-grid-template2.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-halftone-skip-grid-template2.pdf build/output/poppler/bitmap-halftone-skip-grid-template2

stderr:

Syntax Error (1389): Bad pattern bitmap

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-halftone-skip-grid-template2.pdf build/output/pdfjs/bitmap-halftone-skip-grid-template2.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: skip is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone-skip-grid-template2.jbig2 build/output/itu-ref/bitmap-halftone-skip-grid-template2.bmp
bitmap-halftone-skip-grid-template3jbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-halftone-skip-grid-template3.png build/pdfs/bitmap-halftone-skip-grid-template3.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-halftone-skip-grid-template3.pdf build/output/poppler/bitmap-halftone-skip-grid-template3

stderr:

Syntax Error (1392): Bad pattern bitmap

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-halftone-skip-grid-template3.pdf build/output/pdfjs/bitmap-halftone-skip-grid-template3.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: skip is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone-skip-grid-template3.jbig2 build/output/itu-ref/bitmap-halftone-skip-grid-template3.bmp
bitmap-halftone-skip-gridjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-halftone-skip-grid.png build/pdfs/bitmap-halftone-skip-grid.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-halftone-skip-grid.pdf build/output/poppler/bitmap-halftone-skip-grid

stderr:

Syntax Error (1416): Bad pattern bitmap

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-halftone-skip-grid.pdf build/output/pdfjs/bitmap-halftone-skip-grid.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: skip is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone-skip-grid.jbig2 build/output/itu-ref/bitmap-halftone-skip-grid.bmp
bitmap-halftone-template1jbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone-template1.jbig2 build/output/itu-ref/bitmap-halftone-template1.bmp
bitmap-halftone-template2jbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone-template2.jbig2 build/output/itu-ref/bitmap-halftone-template2.bmp
bitmap-halftone-template3jbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone-template3.jbig2 build/output/itu-ref/bitmap-halftone-template3.bmp
bitmap-halftonejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-halftone.jbig2 build/output/itu-ref/bitmap-halftone.bmp
bitmap-initially-unknown-sizejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-initially-unknown-size.pdf build/output/pdfjs/bitmap-initially-unknown-size.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment end was not found". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-initially-unknown-size.jbig2 build/output/itu-ref/bitmap-initially-unknown-size.bmp
bitmap-mmrjbig2pdfjson

Error:

timeout (5s)

Reproduce:

sips -s format png -o build/output/preview/bitmap-mmr.png build/pdfs/bitmap-mmr.pdf
bitmap-p32-eofjbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-p32-eof.jbig2 build/output/itu-ref/bitmap-p32-eof.bmp
bitmap-randomaccessjbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-randomaccess.jbig2 build/output/itu-ref/bitmap-randomaccess.bmp
bitmap-refine-customat-tpgronjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-refine-customat-tpgron.pbm build/jbig2/bitmap-refine-customat-tpgron.jbig2

stderr:

jbig2dec FATAL ERROR unhandled segment type 'intermediate generic region' (NYI) (segment 0x00000001) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000001) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-refine-customat-tpgron.png build/pdfs/bitmap-refine-customat-tpgron.pdf

stderr:

page build/pdfs/bitmap-refine-customat-tpgron.pdf 1warning: jbig2dec error: unhandled segment type 'intermediate generic region' (NYI) (segment 1) warning: jbig2dec warning: failed to decode; treating as end of file (segment 1) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-refine-customat-tpgron.png build/pdfs/bitmap-refine-customat-tpgron.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-refine-customat-tpgron.png -dBATCH -dNOPAUSE build/pdfs/bitmap-refine-customat-tpgron.pdf

stderr:

jbig2dec FATAL ERROR decoding image: unhandled segment type 'intermediate generic region' (NYI) (segment 0x01) jbig2dec WARNING failed to decode; treating as end of file (segment 0x01) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-refine-customat-tpgron.pdf build/output/poppler/bitmap-refine-customat-tpgron

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-refine-customat-tpgron.pdf build/output/pdfjs/bitmap-refine-customat-tpgron.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type IntermediateGenericRegion(36) is not implemented". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-refine-customat-tpgron.jbig2 build/output/itu-ref/bitmap-refine-customat-tpgron.bmp
bitmap-refine-customatjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-refine-customat.pbm build/jbig2/bitmap-refine-customat.jbig2

stderr:

jbig2dec FATAL ERROR unhandled segment type 'intermediate generic region' (NYI) (segment 0x00000001) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000001) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-refine-customat.png build/pdfs/bitmap-refine-customat.pdf

stderr:

page build/pdfs/bitmap-refine-customat.pdf 1warning: jbig2dec error: unhandled segment type 'intermediate generic region' (NYI) (segment 1) warning: jbig2dec warning: failed to decode; treating as end of file (segment 1) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-refine-customat.png -dBATCH -dNOPAUSE build/pdfs/bitmap-refine-customat.pdf

stderr:

jbig2dec FATAL ERROR decoding image: unhandled segment type 'intermediate generic region' (NYI) (segment 0x01) jbig2dec WARNING failed to decode; treating as end of file (segment 0x01) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-refine-customat.pdf build/output/pdfjs/bitmap-refine-customat.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type IntermediateGenericRegion(36) is not implemented". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-refine-customat.jbig2 build/output/itu-ref/bitmap-refine-customat.bmp
bitmap-refine-losslessjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-refine-lossless.pbm build/jbig2/bitmap-refine-lossless.jbig2

stderr:

jbig2dec FATAL ERROR unhandled segment type 'intermediate generic region' (NYI) (segment 0x00000001) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000001) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-refine-lossless.png build/pdfs/bitmap-refine-lossless.pdf

stderr:

page build/pdfs/bitmap-refine-lossless.pdf 1warning: jbig2dec error: unhandled segment type 'intermediate generic region' (NYI) (segment 1) warning: jbig2dec warning: failed to decode; treating as end of file (segment 1) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-refine-lossless.png -dBATCH -dNOPAUSE build/pdfs/bitmap-refine-lossless.pdf

stderr:

jbig2dec FATAL ERROR decoding image: unhandled segment type 'intermediate generic region' (NYI) (segment 0x01) jbig2dec WARNING failed to decode; treating as end of file (segment 0x01) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-refine-lossless.pdf build/output/pdfjs/bitmap-refine-lossless.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type IntermediateGenericRegion(36) is not implemented". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-refine-lossless.jbig2 build/output/itu-ref/bitmap-refine-lossless.bmp
bitmap-refine-page-subrectjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-refine-page-subrect.pbm build/jbig2/bitmap-refine-page-subrect.jbig2

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-refine-page-subrect.png build/pdfs/bitmap-refine-page-subrect.pdf

stderr:

page build/pdfs/bitmap-refine-page-subrect.pdf 1

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-refine-page-subrect.png -dBATCH -dNOPAUSE build/pdfs/bitmap-refine-page-subrect.pdf

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-refine-page-subrect.pdf build/output/pdfjs/bitmap-refine-page-subrect.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type ImmediateGenericRefinementRegion(42) is not implemented". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-refine-page-subrect.jbig2 build/output/itu-ref/bitmap-refine-page-subrect.bmp
bitmap-refine-pagejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-refine-page.pdf build/output/pdfjs/bitmap-refine-page.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type ImmediateGenericRefinementRegion(42) is not implemented". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-refine-page.jbig2 build/output/itu-ref/bitmap-refine-page.bmp
bitmap-refine-refinejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-refine-refine.pbm build/jbig2/bitmap-refine-refine.jbig2

stderr:

jbig2dec FATAL ERROR unhandled segment type 'intermediate generic region' (NYI) (segment 0x00000001) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000001) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-refine-refine.png build/pdfs/bitmap-refine-refine.pdf

stderr:

page build/pdfs/bitmap-refine-refine.pdf 1warning: jbig2dec error: unhandled segment type 'intermediate generic region' (NYI) (segment 1) warning: jbig2dec warning: failed to decode; treating as end of file (segment 1) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-refine-refine.png -dBATCH -dNOPAUSE build/pdfs/bitmap-refine-refine.pdf

stderr:

jbig2dec FATAL ERROR decoding image: unhandled segment type 'intermediate generic region' (NYI) (segment 0x01) jbig2dec WARNING failed to decode; treating as end of file (segment 0x01) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-refine-refine.pdf build/output/pdfjs/bitmap-refine-refine.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type IntermediateGenericRegion(36) is not implemented". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-refine-refine.jbig2 build/output/itu-ref/bitmap-refine-refine.bmp
bitmap-refine-template1-tpgronjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-refine-template1-tpgron.pbm build/jbig2/bitmap-refine-template1-tpgron.jbig2

stderr:

jbig2dec FATAL ERROR unhandled segment type 'intermediate generic region' (NYI) (segment 0x00000001) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000001) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-refine-template1-tpgron.png build/pdfs/bitmap-refine-template1-tpgron.pdf

stderr:

page build/pdfs/bitmap-refine-template1-tpgron.pdf 1warning: jbig2dec error: unhandled segment type 'intermediate generic region' (NYI) (segment 1) warning: jbig2dec warning: failed to decode; treating as end of file (segment 1) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-refine-template1-tpgron.png build/pdfs/bitmap-refine-template1-tpgron.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-refine-template1-tpgron.png -dBATCH -dNOPAUSE build/pdfs/bitmap-refine-template1-tpgron.pdf

stderr:

jbig2dec FATAL ERROR decoding image: unhandled segment type 'intermediate generic region' (NYI) (segment 0x01) jbig2dec WARNING failed to decode; treating as end of file (segment 0x01) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-refine-template1-tpgron.pdf build/output/poppler/bitmap-refine-template1-tpgron

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-refine-template1-tpgron.pdf build/output/pdfjs/bitmap-refine-template1-tpgron.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type IntermediateGenericRegion(36) is not implemented". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-refine-template1-tpgron.jbig2 build/output/itu-ref/bitmap-refine-template1-tpgron.bmp
bitmap-refine-template1jbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-refine-template1.pbm build/jbig2/bitmap-refine-template1.jbig2

stderr:

jbig2dec FATAL ERROR unhandled segment type 'intermediate generic region' (NYI) (segment 0x00000001) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000001) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-refine-template1.png build/pdfs/bitmap-refine-template1.pdf

stderr:

page build/pdfs/bitmap-refine-template1.pdf 1warning: jbig2dec error: unhandled segment type 'intermediate generic region' (NYI) (segment 1) warning: jbig2dec warning: failed to decode; treating as end of file (segment 1) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-refine-template1.png -dBATCH -dNOPAUSE build/pdfs/bitmap-refine-template1.pdf

stderr:

jbig2dec FATAL ERROR decoding image: unhandled segment type 'intermediate generic region' (NYI) (segment 0x01) jbig2dec WARNING failed to decode; treating as end of file (segment 0x01) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-refine-template1.pdf build/output/pdfjs/bitmap-refine-template1.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type IntermediateGenericRegion(36) is not implemented". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-refine-template1.jbig2 build/output/itu-ref/bitmap-refine-template1.bmp
bitmap-refine-tpgronjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-refine-tpgron.pbm build/jbig2/bitmap-refine-tpgron.jbig2

stderr:

jbig2dec FATAL ERROR unhandled segment type 'intermediate generic region' (NYI) (segment 0x00000001) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000001) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-refine-tpgron.png build/pdfs/bitmap-refine-tpgron.pdf

stderr:

page build/pdfs/bitmap-refine-tpgron.pdf 1warning: jbig2dec error: unhandled segment type 'intermediate generic region' (NYI) (segment 1) warning: jbig2dec warning: failed to decode; treating as end of file (segment 1) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-refine-tpgron.png build/pdfs/bitmap-refine-tpgron.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-refine-tpgron.png -dBATCH -dNOPAUSE build/pdfs/bitmap-refine-tpgron.pdf

stderr:

jbig2dec FATAL ERROR decoding image: unhandled segment type 'intermediate generic region' (NYI) (segment 0x01) jbig2dec WARNING failed to decode; treating as end of file (segment 0x01) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-refine-tpgron.pdf build/output/poppler/bitmap-refine-tpgron

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-refine-tpgron.pdf build/output/pdfjs/bitmap-refine-tpgron.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type IntermediateGenericRegion(36) is not implemented". Warning: Dependent image isn't ready yet

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-refine-tpgron.jbig2 build/output/itu-ref/bitmap-refine-tpgron.bmp
bitmap-refinejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-refine.pbm build/jbig2/bitmap-refine.jbig2

stderr:

jbig2dec FATAL ERROR unhandled segment type 'intermediate generic region' (NYI) (segment 0x00000001) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000001) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-refine.png build/pdfs/bitmap-refine.pdf

stderr:

page build/pdfs/bitmap-refine.pdf 1warning: jbig2dec error: unhandled segment type 'intermediate generic region' (NYI) (segment 1) warning: jbig2dec warning: failed to decode; treating as end of file (segment 1) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-refine.png -dBATCH -dNOPAUSE build/pdfs/bitmap-refine.pdf

stderr:

jbig2dec FATAL ERROR decoding image: unhandled segment type 'intermediate generic region' (NYI) (segment 0x01) jbig2dec WARNING failed to decode; treating as end of file (segment 0x01) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-refine.pdf build/output/pdfjs/bitmap-refine.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type IntermediateGenericRegion(36) is not implemented". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-refine.jbig2 build/output/itu-ref/bitmap-refine.bmp
bitmap-stripe-initially-unknown-heightjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-stripe-initially-unknown-height.pdf build/output/pdfjs/bitmap-stripe-initially-unknown-height.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder.

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-stripe-initially-unknown-height.jbig2 build/output/itu-ref/bitmap-stripe-initially-unknown-height.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-stripe-last-implicitjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-stripe-last-implicit.jbig2 build/output/itu-ref/bitmap-stripe-last-implicit.bmp
bitmap-stripe-single-no-end-of-stripejbig2pdfjson
bitmap-stripe-singlejbig2pdfjson
bitmap-stripejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-stripe.jbig2 build/output/itu-ref/bitmap-stripe.bmp
bitmap-symbol-32bit-arithintjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-32bit-arithint.jbig2 build/output/itu-ref/bitmap-symbol-32bit-arithint.bmp
bitmap-symbol-big-segmentidjbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-big-segmentid.jbig2 build/output/itu-ref/bitmap-symbol-big-segmentid.bmp
bitmap-symbol-context-reusejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-symbol-context-reuse.pbm build/jbig2/bitmap-symbol-context-reuse.jbig2

stderr:

jbig2dec WARNING segment marks bitmap coding context as retained (NYI) (segment 0x00000001) jbig2dec WARNING segment marks bitmap coding context as used (NYI) (segment 0x00000002) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000002) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-symbol-context-reuse.png build/pdfs/bitmap-symbol-context-reuse.pdf

stderr:

page build/pdfs/bitmap-symbol-context-reuse.pdf 1warning: jbig2dec warning: segment marks bitmap coding context as retained (NYI) (segment 1) warning: jbig2dec warning: segment marks bitmap coding context as used (NYI) (segment 2) warning: jbig2dec warning: failed to decode; treating as end of file (segment 2) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-context-reuse.png build/pdfs/bitmap-symbol-context-reuse.pdf

stderr:

Error (151): Too many symbols in JBIG2 symbol dictionary Error (151): Too many symbols in JBIG2 symbol dictionary

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-symbol-context-reuse.png -dBATCH -dNOPAUSE build/pdfs/bitmap-symbol-context-reuse.pdf

stderr:

jbig2dec WARNING segment marks bitmap coding context as retained (NYI) (segment 0x01) jbig2dec WARNING segment marks bitmap coding context as used (NYI) (segment 0x02) jbig2dec WARNING failed to decode; treating as end of file (segment 0x02)

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-symbol-context-reuse.pdf build/output/poppler/bitmap-symbol-context-reuse

stderr:

Syntax Error (681): Too many symbols in JBIG2 symbol dictionary Syntax Error (681): readSymbolDictSeg reports syntax error!

Error:

timeout (5s)

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-context-reuse.pdf build/output/pdfjs/bitmap-symbol-context-reuse.png

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-context-reuse.jbig2 build/output/itu-ref/bitmap-symbol-context-reuse.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-symbol-emptyjbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-empty.jbig2 build/output/itu-ref/bitmap-symbol-empty.bmp
bitmap-symbol-globaljbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-global.jbig2 build/output/itu-ref/bitmap-symbol-global.bmp
bitmap-symbol-manyrefsjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-symbol-manyrefs.pbm build/jbig2/bitmap-symbol-manyrefs.jbig2

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-symbol-manyrefs.png build/pdfs/bitmap-symbol-manyrefs.pdf

stderr:

page build/pdfs/bitmap-symbol-manyrefs.pdf 1

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-symbol-manyrefs.png -dBATCH -dNOPAUSE build/pdfs/bitmap-symbol-manyrefs.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-manyrefs.jbig2 build/output/itu-ref/bitmap-symbol-manyrefs.bmp
bitmap-symbol-negative-sbdsoffsetjbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-negative-sbdsoffset.jbig2 build/output/itu-ref/bitmap-symbol-negative-sbdsoffset.bmp
bitmap-symbol-refinejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-refine.pdf build/output/pdfjs/bitmap-symbol-refine.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type IntermediateTextRegion(4) is not implemented". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-refine.jbig2 build/output/itu-ref/bitmap-symbol-refine.bmp
bitmap-symbol-symbolrefine-textrefine-exportjbig2pdfjson

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symbolrefine-textrefine-export.jbig2 build/output/itu-ref/bitmap-symbol-symbolrefine-textrefine-export.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-symbol-symbolrefine-textrefinejbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symbolrefine-textrefine.jbig2 build/output/itu-ref/bitmap-symbol-symbolrefine-textrefine.bmp
bitmap-symbol-symbolrefineone-customatjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symbolrefineone-customat.jbig2 build/output/itu-ref/bitmap-symbol-symbolrefineone-customat.bmp
bitmap-symbol-symbolrefineone-template1jbig2pdfjson

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symbolrefineone-template1.jbig2 build/output/itu-ref/bitmap-symbol-symbolrefineone-template1.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-symbol-symbolrefineonejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symbolrefineone.jbig2 build/output/itu-ref/bitmap-symbol-symbolrefineone.bmp
bitmap-symbol-symbolrefineseveraljbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symbolrefineseveral.jbig2 build/output/itu-ref/bitmap-symbol-symbolrefineseveral.bmp
bitmap-symbol-symhuff-texthuff-runcodes32-34jbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symhuff-texthuff-runcodes32-34.jbig2 build/output/itu-ref/bitmap-symbol-symhuff-texthuff-runcodes32-34.bmp
bitmap-symbol-symhuff-texthuffjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-symhuff-texthuff.png build/pdfs/bitmap-symbol-symhuff-texthuff.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-symbol-symhuff-texthuff.pdf build/output/poppler/bitmap-symbol-symhuff-texthuff

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symhuff-texthuff.jbig2 build/output/itu-ref/bitmap-symbol-symhuff-texthuff.bmp
bitmap-symbol-symhuff-texthuffB10B13jbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-symhuff-texthuffB10B13.png build/pdfs/bitmap-symbol-symhuff-texthuffB10B13.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-symbol-symhuff-texthuffB10B13.pdf build/output/poppler/bitmap-symbol-symhuff-texthuffB10B13

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symhuff-texthuffB10B13.jbig2 build/output/itu-ref/bitmap-symbol-symhuff-texthuffB10B13.bmp
bitmap-symbol-symhuffB5B3-texthuffB7B9B12jbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-symhuffB5B3-texthuffB7B9B12.png build/pdfs/bitmap-symbol-symhuffB5B3-texthuffB7B9B12.pdf

stderr:

Error (98): Exception thrown when attempting to allocate memory. Error (98): Exception thrown when attempting to allocate memory.

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-symbol-symhuffB5B3-texthuffB7B9B12.pdf build/output/poppler/bitmap-symbol-symhuffB5B3-texthuffB7B9B12

stderr:

Syntax Error: invalid width/height Syntax Error (628): readSymbolDictSeg reports syntax error!

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symhuffB5B3-texthuffB7B9B12.jbig2 build/output/itu-ref/bitmap-symbol-symhuffB5B3-texthuffB7B9B12.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-symbol-symhuffcustom-texthuffcustomjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-symhuffcustom-texthuffcustom.png build/pdfs/bitmap-symbol-symhuffcustom-texthuffcustom.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-symbol-symhuffcustom-texthuffcustom.pdf build/output/poppler/bitmap-symbol-symhuffcustom-texthuffcustom

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symhuffcustom-texthuffcustom.jbig2 build/output/itu-ref/bitmap-symbol-symhuffcustom-texthuffcustom.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-symbol-symhuffrefine-textrefine-exportjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-symbol-symhuffrefine-textrefine-export.pbm build/jbig2/bitmap-symbol-symhuffrefine-textrefine-export.jbig2

stderr:

jbig2dec FATAL ERROR ran off the end of the entries table! (36864 >= 32768) jbig2dec WARNING error constructing symbol ID runcode table (segment 0x00000002) jbig2dec WARNING failed to construct symbol ID huffman table (segment 0x00000002) jbig2dec WARNING failed to decode text region (segment 0x00000002) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000002) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-symbol-symhuffrefine-textrefine-export.png build/pdfs/bitmap-symbol-symhuffrefine-textrefine-export.pdf

stderr:

page build/pdfs/bitmap-symbol-symhuffrefine-textrefine-export.pdf 1warning: jbig2dec error: ran off the end of the entries table! (36864 >= 32768) (segment 4294967295) warning: jbig2dec warning: error constructing symbol ID runcode table (segment 2) warning: jbig2dec warning: failed to construct symbol ID huffman table (segment 2) warning: jbig2dec warning: failed to decode text region (segment 2) warning: jbig2dec warning: failed to decode; treating as end of file (segment 2) warning: read erro

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-symhuffrefine-textrefine-export.png build/pdfs/bitmap-symbol-symhuffrefine-textrefine-export.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-symbol-symhuffrefine-textrefine-export.png -dBATCH -dNOPAUSE build/pdfs/bitmap-symbol-symhuffrefine-textrefine-export.pdf

stderr:

jbig2dec FATAL ERROR decoding image: ran off the end of the entries table! (36864 >= 32768) jbig2dec WARNING error constructing symbol ID runcode table (segment 0x02) jbig2dec WARNING failed to construct symbol ID huffman table (segment 0x02) jbig2dec WARNING failed to decode text region (segment 0x02) jbig2dec WARNING failed to decode; treating as end of file (segment 0x02) The following warnings were encountered at least once while processing this file: **** This file had errors that wer

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-symbol-symhuffrefine-textrefine-export.pdf build/output/poppler/bitmap-symbol-symhuffrefine-textrefine-export

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-symhuffrefine-textrefine-export.pdf build/output/pdfjs/bitmap-symbol-symhuffrefine-textrefine-export.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: symbol refinement with Huffman is not supported". Warning: Dependent image isn't ready yet

Error:

timeout (5s)

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symhuffrefine-textrefine-export.jbig2 build/output/itu-ref/bitmap-symbol-symhuffrefine-textrefine-export.bmp
bitmap-symbol-symhuffrefine-textrefinejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-symbol-symhuffrefine-textrefine.pbm build/jbig2/bitmap-symbol-symhuffrefine-textrefine.jbig2

stderr:

jbig2dec FATAL ERROR ran off the end of the entries table! (36864 >= 32768) jbig2dec WARNING error constructing symbol ID runcode table (segment 0x00000002) jbig2dec WARNING failed to construct symbol ID huffman table (segment 0x00000002) jbig2dec WARNING failed to decode text region (segment 0x00000002) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000002) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-symbol-symhuffrefine-textrefine.png build/pdfs/bitmap-symbol-symhuffrefine-textrefine.pdf

stderr:

page build/pdfs/bitmap-symbol-symhuffrefine-textrefine.pdf 1warning: jbig2dec error: ran off the end of the entries table! (36864 >= 32768) (segment 4294967295) warning: jbig2dec warning: error constructing symbol ID runcode table (segment 2) warning: jbig2dec warning: failed to construct symbol ID huffman table (segment 2) warning: jbig2dec warning: failed to decode text region (segment 2) warning: jbig2dec warning: failed to decode; treating as end of file (segment 2) warning: read error; trea

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-symhuffrefine-textrefine.png build/pdfs/bitmap-symbol-symhuffrefine-textrefine.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-symbol-symhuffrefine-textrefine.png -dBATCH -dNOPAUSE build/pdfs/bitmap-symbol-symhuffrefine-textrefine.pdf

stderr:

jbig2dec FATAL ERROR decoding image: ran off the end of the entries table! (36864 >= 32768) jbig2dec WARNING error constructing symbol ID runcode table (segment 0x02) jbig2dec WARNING failed to construct symbol ID huffman table (segment 0x02) jbig2dec WARNING failed to decode text region (segment 0x02) jbig2dec WARNING failed to decode; treating as end of file (segment 0x02) The following warnings were encountered at least once while processing this file: **** This file had errors that wer

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-symbol-symhuffrefine-textrefine.pdf build/output/poppler/bitmap-symbol-symhuffrefine-textrefine

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-symhuffrefine-textrefine.pdf build/output/pdfjs/bitmap-symbol-symhuffrefine-textrefine.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: symbol refinement with Huffman is not supported". Warning: Dependent image isn't ready yet

Error:

timeout (5s)

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symhuffrefine-textrefine.jbig2 build/output/itu-ref/bitmap-symbol-symhuffrefine-textrefine.bmp
bitmap-symbol-symhuffrefineonejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-symbol-symhuffrefineone.pbm build/jbig2/bitmap-symbol-symhuffrefineone.jbig2

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-symbol-symhuffrefineone.png build/pdfs/bitmap-symbol-symhuffrefineone.pdf

stderr:

page build/pdfs/bitmap-symbol-symhuffrefineone.pdf 1

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-symhuffrefineone.png build/pdfs/bitmap-symbol-symhuffrefineone.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-symbol-symhuffrefineone.png -dBATCH -dNOPAUSE build/pdfs/bitmap-symbol-symhuffrefineone.pdf

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-symhuffrefineone.pdf build/output/pdfjs/bitmap-symbol-symhuffrefineone.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: symbol refinement with Huffman is not supported". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symhuffrefineone.jbig2 build/output/itu-ref/bitmap-symbol-symhuffrefineone.bmp
bitmap-symbol-symhuffrefineseveraljbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-symbol-symhuffrefineseveral.pbm build/jbig2/bitmap-symbol-symhuffrefineseveral.jbig2

stderr:

jbig2dec FATAL ERROR ran off the end of the entries table! (3 >= 2) jbig2dec WARNING failed to construct symbol ID huffman table (segment 0x00000002) jbig2dec WARNING failed to decode text region (segment 0x00000002) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000002) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-symbol-symhuffrefineseveral.png build/pdfs/bitmap-symbol-symhuffrefineseveral.pdf

stderr:

page build/pdfs/bitmap-symbol-symhuffrefineseveral.pdf 1warning: jbig2dec error: ran off the end of the entries table! (3 >= 2) (segment 4294967295) warning: jbig2dec warning: failed to construct symbol ID huffman table (segment 2) warning: jbig2dec warning: failed to decode text region (segment 2) warning: jbig2dec warning: failed to decode; treating as end of file (segment 2) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-symhuffrefineseveral.png build/pdfs/bitmap-symbol-symhuffrefineseveral.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-symbol-symhuffrefineseveral.png -dBATCH -dNOPAUSE build/pdfs/bitmap-symbol-symhuffrefineseveral.pdf

stderr:

jbig2dec FATAL ERROR decoding image: ran off the end of the entries table! (3 >= 2) jbig2dec WARNING failed to construct symbol ID huffman table (segment 0x02) jbig2dec WARNING failed to decode text region (segment 0x02) jbig2dec WARNING failed to decode; treating as end of file (segment 0x02) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that produc

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/pdftocairo -r 72 -singlefile -png build/pdfs/bitmap-symbol-symhuffrefineseveral.pdf build/output/poppler/bitmap-symbol-symhuffrefineseveral

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-symhuffrefineseveral.pdf build/output/pdfjs/bitmap-symbol-symhuffrefineseveral.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: symbol refinement with Huffman is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symhuffrefineseveral.jbig2 build/output/itu-ref/bitmap-symbol-symhuffrefineseveral.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-symbol-symhuffuncompressed-texthuffjbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-symhuffuncompressed-texthuff.jbig2 build/output/itu-ref/bitmap-symbol-symhuffuncompressed-texthuff.bmp
bitmap-symbol-textbottomleftjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-textbottomleft.jbig2 build/output/itu-ref/bitmap-symbol-textbottomleft.bmp
bitmap-symbol-textbottomlefttransposejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-textbottomlefttranspose.pdf build/output/pdfjs/bitmap-symbol-textbottomlefttranspose.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder.

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-textbottomlefttranspose.jbig2 build/output/itu-ref/bitmap-symbol-textbottomlefttranspose.bmp
bitmap-symbol-textbottomrightjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-textbottomright.jbig2 build/output/itu-ref/bitmap-symbol-textbottomright.bmp
bitmap-symbol-textbottomrighttransposejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-textbottomrighttranspose.pdf build/output/pdfjs/bitmap-symbol-textbottomrighttranspose.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder.

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-textbottomrighttranspose.jbig2 build/output/itu-ref/bitmap-symbol-textbottomrighttranspose.bmp
bitmap-symbol-textcompositejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-textcomposite.pdf build/output/pdfjs/bitmap-symbol-textcomposite.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: operator 1 is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-textcomposite.jbig2 build/output/itu-ref/bitmap-symbol-textcomposite.bmp
bitmap-symbol-texthuff-runcodes32-34jbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-texthuff-runcodes32-34.jbig2 build/output/itu-ref/bitmap-symbol-texthuff-runcodes32-34.bmp
bitmap-symbol-texthuff-trailingsymbolsjbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-texthuff-trailingsymbols.jbig2 build/output/itu-ref/bitmap-symbol-texthuff-trailingsymbols.bmp
bitmap-symbol-texthuffrefinejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-symbol-texthuffrefine.pbm build/jbig2/bitmap-symbol-texthuffrefine.jbig2

stderr:

jbig2dec FATAL ERROR encountered unpopulated huffman table entry jbig2dec WARNING failed to obtain symbol instance symbol ID (segment 0x00000002) jbig2dec WARNING failed to decode text region image data (segment 0x00000002) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000002) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-symbol-texthuffrefine.png build/pdfs/bitmap-symbol-texthuffrefine.pdf

stderr:

page build/pdfs/bitmap-symbol-texthuffrefine.pdf 1warning: jbig2dec error: encountered unpopulated huffman table entry (segment 4294967295) warning: jbig2dec warning: failed to obtain symbol instance symbol ID (segment 2) warning: jbig2dec warning: failed to decode text region image data (segment 2) warning: jbig2dec warning: failed to decode; treating as end of file (segment 2) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-texthuffrefine.png build/pdfs/bitmap-symbol-texthuffrefine.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-symbol-texthuffrefine.png -dBATCH -dNOPAUSE build/pdfs/bitmap-symbol-texthuffrefine.pdf

stderr:

jbig2dec FATAL ERROR decoding image: encountered unpopulated huffman table entry jbig2dec WARNING failed to obtain symbol instance symbol ID (segment 0x02) jbig2dec WARNING failed to decode text region image data (segment 0x02) jbig2dec WARNING failed to decode; treating as end of file (segment 0x02) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-texthuffrefine.pdf build/output/pdfjs/bitmap-symbol-texthuffrefine.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: refinement with Huffman is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-texthuffrefine.jbig2 build/output/itu-ref/bitmap-symbol-texthuffrefine.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-symbol-texthuffrefineB15jbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-symbol-texthuffrefineB15.pbm build/jbig2/bitmap-symbol-texthuffrefineB15.jbig2

stderr:

jbig2dec FATAL ERROR encountered unpopulated huffman table entry jbig2dec WARNING failed to obtain symbol instance symbol ID (segment 0x00000002) jbig2dec WARNING failed to decode text region image data (segment 0x00000002) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000002) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-symbol-texthuffrefineB15.png build/pdfs/bitmap-symbol-texthuffrefineB15.pdf

stderr:

page build/pdfs/bitmap-symbol-texthuffrefineB15.pdf 1warning: jbig2dec error: encountered unpopulated huffman table entry (segment 4294967295) warning: jbig2dec warning: failed to obtain symbol instance symbol ID (segment 2) warning: jbig2dec warning: failed to decode text region image data (segment 2) warning: jbig2dec warning: failed to decode; treating as end of file (segment 2) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-texthuffrefineB15.png build/pdfs/bitmap-symbol-texthuffrefineB15.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-symbol-texthuffrefineB15.png -dBATCH -dNOPAUSE build/pdfs/bitmap-symbol-texthuffrefineB15.pdf

stderr:

jbig2dec FATAL ERROR decoding image: encountered unpopulated huffman table entry jbig2dec WARNING failed to obtain symbol instance symbol ID (segment 0x02) jbig2dec WARNING failed to decode text region image data (segment 0x02) jbig2dec WARNING failed to decode; treating as end of file (segment 0x02) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-texthuffrefineB15.pdf build/output/pdfjs/bitmap-symbol-texthuffrefineB15.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: refinement with Huffman is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-texthuffrefineB15.jbig2 build/output/itu-ref/bitmap-symbol-texthuffrefineB15.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-symbol-texthuffrefinecustomjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-symbol-texthuffrefinecustom.pbm build/jbig2/bitmap-symbol-texthuffrefinecustom.jbig2

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-symbol-texthuffrefinecustom.png build/pdfs/bitmap-symbol-texthuffrefinecustom.pdf

stderr:

page build/pdfs/bitmap-symbol-texthuffrefinecustom.pdf 1

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-texthuffrefinecustom.png build/pdfs/bitmap-symbol-texthuffrefinecustom.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-symbol-texthuffrefinecustom.png -dBATCH -dNOPAUSE build/pdfs/bitmap-symbol-texthuffrefinecustom.pdf

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-texthuffrefinecustom.pdf build/output/pdfjs/bitmap-symbol-texthuffrefinecustom.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: refinement with Huffman is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-texthuffrefinecustom.jbig2 build/output/itu-ref/bitmap-symbol-texthuffrefinecustom.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-symbol-texthuffrefinecustomdimsjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-symbol-texthuffrefinecustomdims.pbm build/jbig2/bitmap-symbol-texthuffrefinecustomdims.jbig2

stderr:

jbig2dec FATAL ERROR encountered unpopulated huffman table entry jbig2dec WARNING failed to obtain symbol instance symbol ID (segment 0x00000004) jbig2dec WARNING failed to decode text region image data (segment 0x00000004) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000004) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-symbol-texthuffrefinecustomdims.png build/pdfs/bitmap-symbol-texthuffrefinecustomdims.pdf

stderr:

page build/pdfs/bitmap-symbol-texthuffrefinecustomdims.pdf 1warning: jbig2dec error: encountered unpopulated huffman table entry (segment 4294967295) warning: jbig2dec warning: failed to obtain symbol instance symbol ID (segment 4) warning: jbig2dec warning: failed to decode text region image data (segment 4) warning: jbig2dec warning: failed to decode; treating as end of file (segment 4) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-texthuffrefinecustomdims.png build/pdfs/bitmap-symbol-texthuffrefinecustomdims.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-symbol-texthuffrefinecustomdims.png -dBATCH -dNOPAUSE build/pdfs/bitmap-symbol-texthuffrefinecustomdims.pdf

stderr:

jbig2dec FATAL ERROR decoding image: encountered unpopulated huffman table entry jbig2dec WARNING failed to obtain symbol instance symbol ID (segment 0x04) jbig2dec WARNING failed to decode text region image data (segment 0x04) jbig2dec WARNING failed to decode; treating as end of file (segment 0x04) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-texthuffrefinecustomdims.pdf build/output/pdfjs/bitmap-symbol-texthuffrefinecustomdims.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: refinement with Huffman is not supported". Warning: Dependent image isn't ready yet

Error:

timeout (5s)

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-texthuffrefinecustomdims.jbig2 build/output/itu-ref/bitmap-symbol-texthuffrefinecustomdims.bmp
bitmap-symbol-texthuffrefinecustompos-globaljbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-symbol-texthuffrefinecustompos-global.pbm build/jbig2/bitmap-symbol-texthuffrefinecustompos-global.jbig2

stderr:

jbig2dec FATAL ERROR encountered unpopulated huffman table entry jbig2dec WARNING failed to obtain symbol instance symbol ID (segment 0x00000004) jbig2dec WARNING failed to decode text region image data (segment 0x00000004) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000004) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-symbol-texthuffrefinecustompos-global.png build/pdfs/bitmap-symbol-texthuffrefinecustompos-global.pdf

stderr:

page build/pdfs/bitmap-symbol-texthuffrefinecustompos-global.pdf 1warning: jbig2dec error: encountered unpopulated huffman table entry (segment 4294967295) warning: jbig2dec warning: failed to obtain symbol instance symbol ID (segment 4) warning: jbig2dec warning: failed to decode text region image data (segment 4) warning: jbig2dec warning: failed to decode; treating as end of file (segment 4) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-texthuffrefinecustompos-global.png build/pdfs/bitmap-symbol-texthuffrefinecustompos-global.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-symbol-texthuffrefinecustompos-global.png -dBATCH -dNOPAUSE build/pdfs/bitmap-symbol-texthuffrefinecustompos-global.pdf

stderr:

jbig2dec FATAL ERROR decoding image: encountered unpopulated huffman table entry jbig2dec WARNING failed to obtain symbol instance symbol ID (segment 0x04) jbig2dec WARNING failed to decode text region image data (segment 0x04) jbig2dec WARNING failed to decode; treating as end of file (segment 0x04) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-texthuffrefinecustompos-global.pdf build/output/pdfjs/bitmap-symbol-texthuffrefinecustompos-global.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: refinement with Huffman is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-texthuffrefinecustompos-global.jbig2 build/output/itu-ref/bitmap-symbol-texthuffrefinecustompos-global.bmp
bitmap-symbol-texthuffrefinecustomposjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-symbol-texthuffrefinecustompos.pbm build/jbig2/bitmap-symbol-texthuffrefinecustompos.jbig2

stderr:

jbig2dec FATAL ERROR encountered unpopulated huffman table entry jbig2dec WARNING failed to obtain symbol instance symbol ID (segment 0x00000004) jbig2dec WARNING failed to decode text region image data (segment 0x00000004) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000004) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-symbol-texthuffrefinecustompos.png build/pdfs/bitmap-symbol-texthuffrefinecustompos.pdf

stderr:

page build/pdfs/bitmap-symbol-texthuffrefinecustompos.pdf 1warning: jbig2dec error: encountered unpopulated huffman table entry (segment 4294967295) warning: jbig2dec warning: failed to obtain symbol instance symbol ID (segment 4) warning: jbig2dec warning: failed to decode text region image data (segment 4) warning: jbig2dec warning: failed to decode; treating as end of file (segment 4) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-texthuffrefinecustompos.png build/pdfs/bitmap-symbol-texthuffrefinecustompos.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-symbol-texthuffrefinecustompos.png -dBATCH -dNOPAUSE build/pdfs/bitmap-symbol-texthuffrefinecustompos.pdf

stderr:

jbig2dec FATAL ERROR decoding image: encountered unpopulated huffman table entry jbig2dec WARNING failed to obtain symbol instance symbol ID (segment 0x04) jbig2dec WARNING failed to decode text region image data (segment 0x04) jbig2dec WARNING failed to decode; treating as end of file (segment 0x04) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-texthuffrefinecustompos.pdf build/output/pdfjs/bitmap-symbol-texthuffrefinecustompos.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: refinement with Huffman is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-texthuffrefinecustompos.jbig2 build/output/itu-ref/bitmap-symbol-texthuffrefinecustompos.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-symbol-texthuffrefinecustomposdimsjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-symbol-texthuffrefinecustomposdims.pbm build/jbig2/bitmap-symbol-texthuffrefinecustomposdims.jbig2

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-symbol-texthuffrefinecustomposdims.png build/pdfs/bitmap-symbol-texthuffrefinecustomposdims.pdf

stderr:

page build/pdfs/bitmap-symbol-texthuffrefinecustomposdims.pdf 1

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-texthuffrefinecustomposdims.png build/pdfs/bitmap-symbol-texthuffrefinecustomposdims.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-symbol-texthuffrefinecustomposdims.png -dBATCH -dNOPAUSE build/pdfs/bitmap-symbol-texthuffrefinecustomposdims.pdf

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-texthuffrefinecustomposdims.pdf build/output/pdfjs/bitmap-symbol-texthuffrefinecustomposdims.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: refinement with Huffman is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-texthuffrefinecustomposdims.jbig2 build/output/itu-ref/bitmap-symbol-texthuffrefinecustomposdims.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-symbol-texthuffrefinecustomsizejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-symbol-texthuffrefinecustomsize.pbm build/jbig2/bitmap-symbol-texthuffrefinecustomsize.jbig2

stderr:

jbig2dec FATAL ERROR encountered unpopulated huffman table entry jbig2dec WARNING failed to obtain symbol instance symbol ID (segment 0x00000003) jbig2dec WARNING failed to decode text region image data (segment 0x00000003) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000003) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-symbol-texthuffrefinecustomsize.png build/pdfs/bitmap-symbol-texthuffrefinecustomsize.pdf

stderr:

page build/pdfs/bitmap-symbol-texthuffrefinecustomsize.pdf 1warning: jbig2dec error: encountered unpopulated huffman table entry (segment 4294967295) warning: jbig2dec warning: failed to obtain symbol instance symbol ID (segment 3) warning: jbig2dec warning: failed to decode text region image data (segment 3) warning: jbig2dec warning: failed to decode; treating as end of file (segment 3) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-symbol-texthuffrefinecustomsize.png build/pdfs/bitmap-symbol-texthuffrefinecustomsize.pdf

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-symbol-texthuffrefinecustomsize.png -dBATCH -dNOPAUSE build/pdfs/bitmap-symbol-texthuffrefinecustomsize.pdf

stderr:

jbig2dec FATAL ERROR decoding image: encountered unpopulated huffman table entry jbig2dec WARNING failed to obtain symbol instance symbol ID (segment 0x03) jbig2dec WARNING failed to decode text region image data (segment 0x03) jbig2dec WARNING failed to decode; treating as end of file (segment 0x03) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-texthuffrefinecustomsize.pdf build/output/pdfjs/bitmap-symbol-texthuffrefinecustomsize.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: refinement with Huffman is not supported". Warning: Dependent image isn't ready yet

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-texthuffrefinecustomsize.jbig2 build/output/itu-ref/bitmap-symbol-texthuffrefinecustomsize.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-symbol-textrefine-customatjbig2pdfjson

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-textrefine-customat.jbig2 build/output/itu-ref/bitmap-symbol-textrefine-customat.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-symbol-textrefine-negative-delta-widthjbig2pdfjson

Error:

exit code 250

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-textrefine-negative-delta-width.jbig2 build/output/itu-ref/bitmap-symbol-textrefine-negative-delta-width.bmp

stderr:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
bitmap-symbol-textrefinejbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-textrefine.jbig2 build/output/itu-ref/bitmap-symbol-textrefine.bmp
bitmap-symbol-texttoprightjbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-texttopright.jbig2 build/output/itu-ref/bitmap-symbol-texttopright.bmp
bitmap-symbol-texttoprighttransposejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-symbol-texttoprighttranspose.pdf build/output/pdfjs/bitmap-symbol-texttoprighttranspose.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder.

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-texttoprighttranspose.jbig2 build/output/itu-ref/bitmap-symbol-texttoprighttranspose.bmp
bitmap-symbol-texttransposejbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol-texttranspose.jbig2 build/output/itu-ref/bitmap-symbol-texttranspose.bmp
bitmap-symboljbig2pdfjson

Error:

exit code 245

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-symbol.jbig2 build/output/itu-ref/bitmap-symbol.bmp
bitmap-template1-customat-tpgdonjbig2pdfjson
bitmap-template1-customatjbig2pdfjson
bitmap-template1-tpgdonjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-template1-tpgdon.jbig2 build/output/itu-ref/bitmap-template1-tpgdon.bmp
bitmap-template1jbig2pdfjson
bitmap-template2-customat-tpgdonjbig2pdfjson
bitmap-template2-customatjbig2pdfjson
bitmap-template2-tpgdonjbig2pdfjson
bitmap-template2jbig2pdfjson
bitmap-template3-customat-tpgdonjbig2pdfjson
bitmap-template3-customatjbig2pdfjson
bitmap-template3-tpgdonjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

sips -s format png -o build/output/preview/bitmap-template3-tpgdon.png build/pdfs/bitmap-template3-tpgdon.pdf
bitmap-template3jbig2pdfjson
bitmap-tpgdonjbig2pdfjson
bitmap-trailing-7fff-stripped-harder-refinejbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/src/homebrew/bin/jbig2dec -o build/output/jbig2dec/bitmap-trailing-7fff-stripped-harder-refine.pbm build/jbig2/bitmap-trailing-7fff-stripped-harder-refine.jbig2

stderr:

jbig2dec FATAL ERROR unhandled segment type 'intermediate generic region' (NYI) (segment 0x00000002) jbig2dec WARNING failed to decode; treating as end of file (segment 0x00000002) jbig2dec WARNING unable to process jbig2 page stream

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/local/bin/mutool draw -o build/output/mupdf/bitmap-trailing-7fff-stripped-harder-refine.png build/pdfs/bitmap-trailing-7fff-stripped-harder-refine.pdf

stderr:

page build/pdfs/bitmap-trailing-7fff-stripped-harder-refine.pdf 1warning: jbig2dec error: unhandled segment type 'intermediate generic region' (NYI) (segment 2) warning: jbig2dec warning: failed to decode; treating as end of file (segment 2) warning: read error; treating as end of file warning: padding truncated image

Decoder output:

output

Diff:

diff

Reproduce:

/Users/thakis/Downloads/ghostscript-10.05.1/bin/gs -sDEVICE=fpng -sOutputFile=build/output/ghostscript/bitmap-trailing-7fff-stripped-harder-refine.png -dBATCH -dNOPAUSE build/pdfs/bitmap-trailing-7fff-stripped-harder-refine.pdf

stderr:

jbig2dec FATAL ERROR decoding image: unhandled segment type 'intermediate generic region' (NYI) (segment 0x02) jbig2dec WARNING failed to decode; treating as end of file (segment 0x02) The following warnings were encountered at least once while processing this file: **** This file had errors that were repaired or ignored. **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.

Decoder output:

output

Diff:

diff

Reproduce:

node pdfjs_render.mjs build/pdfs/bitmap-trailing-7fff-stripped-harder-refine.pdf build/output/pdfjs/bitmap-trailing-7fff-stripped-harder-refine.png

stderr:

Warning: JBig2Image#instantiateWasm: UnknownErrorException: Ensure that the `wasmUrl` API parameter is provided. Warning: Jbig2Stream: Falling back to JS JBIG2 decoder. Warning: Unable to decode image "img_p0_1": "Jbig2Error: segment type IntermediateGenericRegion(36) is not implemented". Warning: Dependent image isn't ready yet

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-trailing-7fff-stripped-harder-refine.jbig2 build/output/itu-ref/bitmap-trailing-7fff-stripped-harder-refine.bmp
bitmap-trailing-7fff-stripped-harderjbig2pdfjson

Decoder output:

output

Diff:

diff

Reproduce:

/usr/bin/python3 jbig2_ref_wrapper.py /Users/thakis/Downloads/T-REC-T.88-201808-I!!SOFT-ZST-E/Software/JBIG2_SampleSoftware-A20180829/source/jbig2 build/jbig2/bitmap-trailing-7fff-stripped-harder.jbig2 build/output/itu-ref/bitmap-trailing-7fff-stripped-harder.bmp
bitmap-trailing-7fff-strippedjbig2pdfjson
bitmapjbig2pdfjson