-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image displayed without color (Red changed to Black) #6931
Comments
File is correctly displayed with gs and a commercial java product whose name starts with j. File is incorrectly displayed with PDFBox and a commercial java product whose name starts with i. PDFBox complains about a bad icc profile and uses the RGB colorspace instead. |
Chrome display this in blue (should be red). I also reported a bug to them: Acrobat Reader and SumatraPDF (MuPDF) can display this correctly in my test. |
I've briefly looked at this PDF file, using http://brendandahl.github.io/pdf.js.utils/browser/. |
@Snuffleupagus we can always replace functions by LUT if we cannot perform color transforms on the the core side. See also #6723 and #5046 (comment) . |
@WalterYongtaoWang Are you the author of the PDF file, and if so may we include it in our test-suite? |
Here's a document that has both: page 4 has an array of transfer functions, page 11 and 12 have a single transfer function for all colorants. This is a NASA document (I googled "Planetary Systems Branch") , thus not copyrighted. Another non copyrighted PDF with a single transfer function: |
@Snuffleupagus I'm really sorry, this is from our customer and they don't want to include this PDF file into the test suites. |
@WalterYongtaoWang Is there any way you could generate a minimal test case, i.e., a PDF file with only the logo in it and no other data? If that's also not possible, we might need to look into creating a reduced test case from this PDF, which will be hard I'm afraid :( |
I made some changes. Please included this one in your test suites. Thanks. |
@WalterYongtaoWang Awesome, thank you for providing this file! |
https://bugzilla.mozilla.org/show_bug.cgi?id=1149713 contains another example of a PDF file where some images utilise transfer functions. |
test.pdf
Open the attachment. The logo and company name on top right is in black, but it should be in red.
The text was updated successfully, but these errors were encountered: