mozilla/pdf.js — Issue #1178: Can't load PDF: Illegal character in hex string: !
Author: hackel
Created: 2012-02-07 06:30:06+00:00
State: open

I am unable to load the following PDF: https://caterforless.com/public/images/szechuanspice.pdf

It appears to work fine in Evince. Here is the full error given:

PDF.JS Build: 51d831e
Message: Illegal character in hex string: !
Stack: error("Illegal character in hex string: !")@chrome://pdf.js/content/web/viewer.html?file=https%3A%2F%2Fcaterforless.com%2Fpublic%2Fimages%2Fszechuanspice.pdf:896
lexerGetHexString("!")@chrome://pdf.js/content/web/viewer.html?file=https%3A%2F%2Fcaterforless.com%2Fpublic%2Fimages%2Fszechuanspice.pdf:24897
lexerGetObj()@chrome://pdf.js/content/web/viewer.html?file=https%3A%2F%2Fcaterforless.com%2Fpublic%2Fimages%2Fszechuanspice.pdf:24951
parserRefill()@chrome://pdf.js/content/web/viewer.html?file=https%3A%2F%2Fcaterforless.com%2Fpublic%2Fimages%2Fszechuanspice.pdf:24459
Parser([object Object],false)@chrome://pdf.js/content/web/viewer.html?file=https%3A%2F%2Fcaterforless.com%2Fpublic%2Fimages%2Fszechuanspice.pdf:24454
Linearization([object Object])@chrome://pdf.js/content/web/viewer.html?file=https%3A%2F%2Fcaterforless.com%2Fpublic%2Fimages%2Fszechuanspice.pdf:25009
()@chrome://pdf.js/content/web/viewer.html?file=https%3A%2F%2Fcaterforless.com%2Fpublic%2Fimages%2Fszechuanspice.pdf:504
()@chrome://pdf.js/content/web/viewer.html?file=https%3A%2F%2Fcaterforless.com%2Fpublic%2Fimages%2Fszechuanspice.pdf:514
pdfDocSetup()@chrome://pdf.js/content/web/viewer.html?file=https%3A%2F%2Fcaterforless.com%2Fpublic%2Fimages%2Fszechuanspice.pdf:573
init([object Object])@chrome://pdf.js/content/web/viewer.html?file=https%3A%2F%2Fcaterforless.com%2Fpublic%2Fimages%2Fszechuanspice.pdf:479
PDFDocModel([object Object])@chrome://pdf.js/content/web/viewer.html?file=https%3A%2F%2Fcaterforless.com%2Fpublic%2Fimages%2Fszechuanspice.pdf:469
PDFDoc([object ArrayBuffer])@chrome://pdf.js/content/web/viewer.html?file=https%3A%2F%2Fcaterforless.com%2Fpublic%2Fimages%2Fszechuanspice.pdf:633
pdfViewLoad([object ArrayBuffer],0)@resource://pdf.js/web/viewer.js:440
getPdfLoad([object ArrayBuffer])@resource://pdf.js/web/viewer.js:288
getPdfOnreadystatechange([object Event])@chrome://pdf.js/content/web/viewer.html?file=https%3A%2F%2Fcaterforless.com%2Fpublic%2Fimages%2Fszechuanspice.pdf:76