If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

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

RESOLVED INVALID

Status

()

Firefox
PDF Viewer
P3
normal
RESOLVED INVALID
4 years ago
4 years ago

People

(Reporter: f791647, Unassigned)

Tracking

22 Branch
x86_64
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

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

Attachments

(1 attachment)

9.19 KB, application/pdf
Details
(Reporter)

Description

4 years ago
Created attachment 771607 [details]
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
(Reporter)

Updated

4 years ago
Summary: white page → PDF file renders white page
(Reporter)

Updated

4 years ago
Summary: PDF file renders white page → PDF viewer renders white page
(Reporter)

Updated

4 years ago
Component: Untriaged → PDF Viewer

Comment 1

4 years ago
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

Comment 2

4 years ago
I tested with a 3rd-party reader, it fails to display it.
(Reporter)

Comment 3

4 years ago
(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...

Updated

4 years ago
Priority: -- → P3
Whiteboard: [pdfjs-c-rendering][pdfjs-d-font-conversion]
(Reporter)

Comment 4

4 years ago
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
(Reporter)

Updated

4 years ago
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.