mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.33k stars 9.97k forks source link

The color of some texts is wrong. #6234

Closed takahiroyoshi closed 8 years ago

takahiroyoshi commented 9 years ago

I uploaded the sample file: http://www.broadband-xp.com/test/pdfjs/english_title2.pdf

When I load the above PDF in https://mozilla.github.io/pdf.js/web/viewer.html with Firefox 39.0, the color of texts is wrong. With Adobe Reader it is blue or something, but with pdf.js it is white. No error in console.

timvandermeij commented 9 years ago

This appears to be another pattern/shading problem.

THausherr commented 9 years ago

Here are simpler files with the same problem (using a shading pattern for text rendering): https://issues.apache.org/jira/secure/attachment/12652022/PDFBOX-2159.pdf https://issues.apache.org/jira/secure/attachment/12650283/000004_ShadingPatternTextPDF.pdf The first one is also available as postscript here: https://issues.apache.org/jira/browse/PDFBOX-2159

Snuffleupagus commented 9 years ago

This could potentially be related to issues: #3988, #5432 and #6130.

timvandermeij commented 8 years ago

This PDF now renders exactly the same as in Adobe Reader/Acrobat, so I'm closing this as fixed. The other PDF files in this issue are indeed related to the other mentioned issues, and not to this issue.

Snuffleupagus commented 8 years ago

@THausherr Can we include the PDF files mentioned in https://github.com/mozilla/pdf.js/issues/6234#issuecomment-126369593 in the test-suite? I've got a patch (locally), which fixes one part of the issues with those files.

THausherr commented 8 years ago

Only the PDFBOX-2159.pdf file, because I created that one. The other one was provided by Petr Slaby ( slaby at kwsoft.de ) but I don't know if he's the author.