Fail to show a PDF - this works in other browsers and PDF plug-in

RESOLVED FIXED

Status

()

P2
normal
RESOLVED FIXED
6 years ago
4 years ago

People

(Reporter: milan, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [pdfjs-c-rendering], URL)

Attachments

(2 attachments)

Created attachment 703447 [details]
PDF that fails to display

Go to http://www.sunrivervacations.com/map.pdf and get a message that we couldn't display the page.  If it works (because the page changed), try the attached file instead.  This is not a large document; it's < 2k x 2k.

Comment 1

6 years ago
The web console display the two following errors:
An error occurred while rendering the page.
PDF.JS Build: e22ee54
Message: Missing endstream
Stack: error@resource://pdf.js/build/pdf.js:657
Parser_makeStream@resource://pdf.js/build/pdf.js:29589
Parser_getObj@resource://pdf.js/build/pdf.js:29485
XRef_fetch@resource://pdf.js/build/pdf.js:4092
XRef_fetchIfRef@resource://pdf.js/build/pdf.js:4044
ColorSpace_parseToIR@resource://pdf.js/build/pdf.js:12365
PartialEvaluator_getOperatorList@resource://pdf.js/build/pdf.js:14567
Page_getOperatorList@resource://pdf.js/build/pdf.js:218
wphSetupRenderPage@resource://pdf.js/build/pdf.js:32980
messageHandlerComObjOnMessage@resource://pdf.js/build/pdf.js:32824

An error occurred while rendering the page.
PDF.JS Build: e22ee54
Message: Illegal character in hex string: /
Stack: error@resource://pdf.js/build/pdf.js:657
Lexer_getHexString@resource://pdf.js/build/pdf.js:29875
Lexer_getObj@resource://pdf.js/build/pdf.js:29929
Parser_shift@resource://pdf.js/build/pdf.js:29447
Parser_makeStream@resource://pdf.js/build/pdf.js:29586
Parser_getObj@resource://pdf.js/build/pdf.js:29485
XRef_fetch@resource://pdf.js/build/pdf.js:4092
XRef_fetchIfRef@resource://pdf.js/build/pdf.js:4044
Page_getContentStream@resource://pdf.js/build/pdf.js:200
Page_getOperatorList@resource://pdf.js/build/pdf.js:212
wphSetupRenderPage@resource://pdf.js/build/pdf.js:32980
messageHandlerComObjOnMessage@resource://pdf.js/build/pdf.js:32824

Updated

6 years ago
OS: Mac OS X → All
Priority: -- → P2
Hardware: x86 → All
Whiteboard: [pdfjs-c-rendering]

Comment 2

6 years ago
fail to render text of this file 

http://quora.org/thesis-daniel-blueman.pdf

web console error
[13:42:59.503] PDF 99751837333fafe4cf9614bef22bef2b [1.4 GPL Ghostscript 9.04 / -]

--
[14:05:24.880] Không rõ pseudo-class hoặc pseudo-element '-webkit-full-screen'.  Ruleset bị bỏ qua do selector tồi. @ resource://pdf.js/web/viewer.css:45
[14:05:24.880] Không rõ pseudo-class hoặc pseudo-element 'fullscreen'.  Ruleset bị bỏ qua do selector tồi. @ resource://pdf.js/web/viewer.css:67
[14:05:24.880] Lỗi trong khi phân tích giá trị cho 'background-image'.  Khai báo bị bỏ. @ resource://pdf.js/web/viewer.css:245
[14:05:24.881] Không rõ thuộc tính 'box-sizing'.  Khai báo bị bỏ. @ resource://pdf.js/web/viewer.css:808
[14:05:24.881] Không rõ pseudo-class hoặc pseudo-element '-webkit-inner-spin-button'.  Ruleset bị bỏ qua do selector tồi. @ resource://pdf.js/web/viewer.css:865
[14:05:24.881] Không rõ thuộc tính '-moz-box-shadow'.  Khai báo bị bỏ. @ resource://pdf.js/web/viewer.css:1046
[14:05:24.881] Lỗi trong khi phân tích giá trị cho 'background'.  Khai báo bị bỏ. @ resource://pdf.js/web/viewer.css:1109
[14:05:24.881] Cần màu nhưng lại thấy 'top'.  Lỗi trong khi phân tích giá trị cho 'background'.  Khai báo bị bỏ. @ resource://pdf.js/web/viewer.css:1114
[14:05:24.881] Không rõ pseudo-class hoặc pseudo-element 'selection'.  Ruleset bị bỏ qua do selector tồi. @ resource://pdf.js/web/viewer.css:1194
[14:05:24.881] Không rõ thuộc tính '-moz-border-radius'.  Khai báo bị bỏ. @ resource://pdf.js/web/viewer.css:1207

Comment 3

6 years ago
Created attachment 733734 [details]
fail to render text

Comment 4

6 years ago
Tran Hai Son, file a new bug (one bug per PDF file failure).

Comment 5

4 years ago
Working range (about PDF not displayed):
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=4ffb23062b3b&tochange=b48e06621dc9

Fixed by 
Ryan VanderMeulen — Bug 888635 - Update pdf.js to version 0.8.291. r=bdahl

NB: some colours were still wrong but it has been fixed later.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Depends on: 888635
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.