Closed Bug 890498 Opened 11 years ago Closed 11 years ago

PDF viewer renders white page with Message: this.encoding is undefined

Categories

(Firefox :: PDF Viewer, defect, P3)

22 Branch
x86_64
Windows 7
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: f791647, Unassigned)

Details

(Whiteboard: [pdfjs-c-rendering][pdfjs-d-font-conversion])

Attachments

(1 file)

9.19 KB, application/pdf
Details
Attached file test.pdf
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0 (Beta/Release)
Build ID: 20130618035212

Steps to reproduce:

created pdf file with apache fop which contains ascii chars from 32 to 255 in cp-1250 encoding. i was trying to open it with ff...


Actual results:

ff rendered white page with message "This PDF document might not be displayed correctly."


Expected results:

correct pdf should have happen.
attached file renders correctly in chrome, ie, adobe pdf reader
Summary: white page → PDF file renders white page
Summary: PDF file renders white page → PDF viewer renders white page
Component: Untriaged → PDF Viewer
Confiremed with FF25 too:

[16:11:36.848] "PDF 7b286e0c0acc84a529ea982ac84af2 [1.4 Apache FOP Version 1.0beta2 / Apache FOP Version 1.0beta2] (PDF.js: 0.8.291)"
[16:11:37.058] "An error occurred while rendering the page.
PDF.js v0.8.291 (build: 4e83123)
Message: this.encoding is undefined
Stack: Font_charToGlyph@resource://pdf.js/build/pdf.js:22167
Font_charsToGlyphs@resource://pdf.js/build/pdf.js:22292
CanvasGraphics_showText@resource://pdf.js/build/pdf.js:3901
CanvasGraphics_showSpacedText@resource://pdf.js/build/pdf.js:4100
CanvasGraphics_executeOperatorList@resource://pdf.js/build/pdf.js:3412
next@resource://pdf.js/build/pdf.js:2489
pdfViewcContinueCallback@resource://pdf.js/web/viewer.js:2773
PDFPageProxy_display/continueWrapper@resource://pdf.js/build/pdf.js:2482
PDFPageProxy_display@resource://pdf.js/build/pdf.js:2497
pageDisplayReadyPromise@resource://pdf.js/build/pdf.js:2403
runHandlers@resource://pdf.js/build/pdf.js:1865
"
[16:11:37.949] "Warning: Unhandled rejection: TypeError: this.encoding is undefined"
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: PDF viewer renders white page → PDF viewer renders white page with Message: this.encoding is undefined
I tested with a 3rd-party reader, it fails to display it.
(In reply to Loic from comment #2)
> I tested with a 3rd-party reader, it fails to display it.

and your 3rd-party reader is...
Priority: -- → P3
Whiteboard: [pdfjs-c-rendering][pdfjs-d-font-conversion]
first of all: i must say sorry to you all. attached pdf file has been generated with modified apache fop and just fixed bug in my modification (thx to Loic for pasting pdf.js errors).

so, everything is fine with pdf viewer, pebcac ;]

sorry for wasteing your time
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: