mozilla/pdf.js — Issue #948: Error rendering PDFs from JSTOR
Author: ajlyon
Created: 2011-12-16 02:00:16+00:00
State: open

When I view the second or subsequent pages of any older PDF from JSTOR, using a git build of the XPI on Fx 8, I get an error:

/ 21
Bookmark
An error occurred while rendering the page.
PDF.JS Build: 8231ed1 Message: this is undefined Stack: ccittFaxStreamFindTableCode(1,7,[object Array])@chrome://pdf.js/content/build/pdf.js:26239 ccittFaxStreamGetTwoDimCode()@chrome://pdf.js/content/build/pdf.js:26268 ccittFaxStreamLookChar()@chrome://pdf.js/content/build/pdf.js:25965 ccittFaxStreamReadBlock()@chrome://pdf.js/content/build/pdf.js:25880 decodestream_getBytes(3078000)@chrome://pdf.js/content/build/pdf.js:24502 fillRgbaBuffer([object Uint8Array],(void 0))@chrome://pdf.js/content/build/pdf.js:20441 buildPaintImageXObject([object Object],false)@chrome://pdf.js/content/build/pdf.js:11556 partialEvaluatorGetIRQueue([object Object],[object Object],[object Object],[object Array])@chrome://pdf.js/content/build/pdf.js:11692 partialEvaluatorGetIRQueue([object Object],[object Object],[object Object],[object Array])@chrome://pdf.js/content/build/pdf.js:11683 pageGetIRQueue([object Object],[object Array])@chrome://pdf.js/content/build/pdf.js:225 wphSetupPageRequest(2)@chrome://pdf.js/content/build/pdf.js:26580 messageHandlerComObjOnMessage([object MessageEvent])@chrome://pdf.js/content/build/pdf.js:26519
Article Contents
p. [103]
p. 104
[... snipped out continuation of table of contents ...]

The first page renders fine; nothing renders for subsequent pages. This affects all older articles on JSTOR; the error above was from http://www.jstor.org/stable/1191297 in particular.

Copyright prevents me from posting the PDF publicly, but I can share it for debugging; send me a message.