Open Bug 816570 Opened 13 years ago Updated 3 years ago

White text is unreadable as background isn't rendered

Categories

(Core :: Graphics: Canvas2D, defect)

x86_64
Windows 7
defect

Tracking

()

REOPENED

People

(Reporter: amla70, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

Try to load this pdf: http://www.guysmithferrier.com/downloads/teni18n.pdf and look at the second page, third, etc... only a few part of the content is available as the background is not rendered and the white text can't be read that way
Looks okay on OSX, but windows is broken.
Priority: -- → P3
Whiteboard: [pdfjs-c-rendering]
The canvas fails to draw the large image (e.g. 12004x1) using drawImage() function.
Component: PDF Viewer → Canvas: 2D
Priority: P3 → --
Product: Firefox → Core
Version: 19 Branch → Trunk
The minimal test case (attachment 687993 [details]) shall display the blue-to-black gradient filled rectangle.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Whiteboard: [pdfjs-c-rendering]
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Do you consider adding a workaround in the pdf.js side? If not, this is a duplicate of bug 728571.
Depends on: 728571
I think the pdf.js may already be going in that direction of not allocating the native resolution. If not, it probably should, at least in this case. The quick workaround is to clip, so that you at least see the first 8k, but that is probably worse than failing to display it and having the user download the document - but this is only relevant for the PDF case.
(In reply to Milan Sreckovic [:milan] from comment #8) > I think the pdf.js may already be going in that direction of not allocating > the native resolution. If not, it probably should, at least in this case. Not sure what do you mean? Original problem was with display of the JPEG image and not with allocation on the canvas. How the original image can be resized on pdf.js side? Problem exists on Windows and not on Mac. Not sure if it's only relevant for the PDF case only.
Right, my comment was in the context of Comment 7, talking about a different/duplicated bug. So, we could produce a PDF only workaround, clipping the image, or implementing a different solution, in which case this bug is not the duplicate of 728571. Or, we could do a proper, 728571 solution, in which case PDF would also work. There are a few bugs getting mixed in here.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: