Beginning on October 25th, 2016, Persona will no longer be an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 741953 - unable to render pdf
: unable to render pdf
Product: Firefox
Classification: Client Software
Component: PDF Viewer (show other bugs)
: unspecified
: x86 Mac OS X
: -- normal (vote)
: Firefox 17
Assigned To: Nobody; OK to take it and work on it
: Brendan Dahl [:bdahl]
Depends on:
  Show dependency treegraph
Reported: 2012-04-03 10:45 PDT by Aki Sasaki [:aki]
Modified: 2016-05-10 19:12 PDT (History)
5 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Description Aki Sasaki [:aki] 2012-04-03 10:45:39 PDT
I'm able to download and view this pdf in Preview and Adobe Reader.
When I load the url directly, pdf.js fails to render any of it.
When I download the pdf and then drag/drop it into Firefox, it renders some of the pages correctly and most of them as a line of static above a black page.

I'm on 14.0a1 2012-04-03.
Comment 1 Scoobidiver (away) 2012-04-20 06:25:56 PDT
With PDF Viewer 0.3.35, I get the following message:
"PDF.JS Build: cf19de8
Message: JBIG2 image format is not currently supprted.
Stack: error("JBIG2 image format is not currently supprted.")@moz-filedata:4e435cf0-ac2b-48e1-a946-cb19893a0650:514
Parser_makeFilter([object Object],"JBIG2Decode",31132,(void 0))@moz-filedata:4e435cf0-ac2b-48e1-a946-cb19893a0650:26138
Parser_filter([object Object],[object Object],31132)@moz-filedata:4e435cf0-ac2b-48e1-a946-cb19893a0650:26081
Parser_makeStream([object Object],(void 0))@moz-filedata:4e435cf0-ac2b-48e1-a946-cb19893a0650:26073
XRef_fetch([object Object])@moz-filedata:4e435cf0-ac2b-48e1-a946-cb19893a0650:3553
XRef_fetchIfRef([object Object])@moz-filedata:4e435cf0-ac2b-48e1-a946-cb19893a0650:3505
PartialEvaluator_getOperatorList([object Object],[object Object],[object Array])@moz-filedata:4e435cf0-ac2b-48e1-a946-cb19893a0650:13090
Page_getOperatorList([object Object],[object Array])@moz-filedata:4e435cf0-ac2b-48e1-a946-cb19893a0650:171
wphSetupRenderPage([object Object])@moz-filedata:4e435cf0-ac2b-48e1-a946-cb19893a0650:29263
messageHandlerComObjOnMessage([object MessageEvent])@moz-filedata:4e435cf0-ac2b-48e1-a946-cb19893a0650:29168"
Comment 2 Brendan Dahl [:bdahl] 2012-07-17 09:52:57 PDT
WFM, JBIG2 support was added in current nightly.
Comment 3 Mihaela Velimiroviciu (:mihaelav) 2012-12-17 05:41:54 PST
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:20.0) Gecko/20121217 Firefox/20.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:19.0) Gecko/20121216 Firefox/19.0

Verified that provided PDF is rendered (though it needs some time to display the content) using the latest Nightly (20.0) and Aurora (19.0) builds.
Comment 4 Jason McKillican 2014-10-30 12:19:16 PDT
I have run into a similar error - JBIG2 is supported but not JBIG2 huffman.

Error occurs on PDF:

This is a PDF with scanned images overlayed with OCR text.  PDF.js renders this PDF as a blank page.

PDF.js both in Firefox Nightly and Chromium Nightly (via the Chrome Store extension) show the issue.

Firefox Nightly:  Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:36.0) Gecko/20100101 Firefox/36.0 (2014-10-30)

"PDF 45847fd3c55ebb91f56344f6f26abe [1.5 ABBYY FineReader 8.0 Professional Edition / -] (PDF.js: 1.0.907)" viewer.js:5357
"Error: JBIG2 error: huffman is not supported" pdf.worker.js:250
" pdf.worker.js:252
"Warning: Unsupported feature "unknown"" pdf.worker.js:235
"Warning: Unsupported feature "unknown"" pdf.js:235
"Warning: Unable to decode image: Error: JBIG2 error: huffman is not supported" pdf.worker.js:235
"Warning: Dependent image isn't ready yet"

Chromium Nightly:  Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2198.0 Safari/537.36

PDF 45847fd3c55ebb91f56344f6f26abe [1.5 ABBYY FineReader 8.0 Professional Edition / -] (PDF.js: 1.0.604)
pdf.worker.js:250 Error: JBIG2 error: huffman is not supported
pdf.worker.js:252     at error (pdf.worker.js:252)
    at Object.SimpleSegmentVisitor_onSymbolDictionary [as onSymbolDictionary] (pdf.worker.js:36995)
    at processSegment (pdf.worker.js:36867)
    at processSegments (pdf.worker.js:36873)
    at parseJbig2Chunks (pdf.worker.js:36903)
    at Object.Jbig2Image_parseChunks [as parseChunks] (pdf.worker.js:37051)
    at Object.Jbig2Stream_ensureBuffer [as ensureBuffer] (pdf.worker.js:31138)
    at Object.DecodeStream_getBytes [as getBytes] (pdf.worker.js:30270)
    at Object.PDFImage_getImageBytes [as getImageBytes] (pdf.worker.js:26101)
pdf.worker.js:235 Warning: Unsupported feature "unknown"
pdf.js:235 Warning: Unsupported feature "unknown"

Note You need to log in before you can comment on or make changes to this bug.