Skip to content
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

PDF file with CalRGB colorspace renders blank #5270

Closed
Snuffleupagus opened this issue Sep 5, 2014 · 0 comments · Fixed by #5276
Closed

PDF file with CalRGB colorspace renders blank #5270

Snuffleupagus opened this issue Sep 5, 2014 · 0 comments · Fixed by #5276

Comments

@Snuffleupagus
Copy link
Collaborator

The PDF file available at: http://pdf.yt/d/eMEhGsydpLZzY0NR/embed (from #5268) renders completely blank in the latest version (1.0.738) of PDF.js. The following is printed in the console:

"PDF e56ae3f04174a54750e7716e887efa3c [1.4 iTextSharp 5.1.2 (c) 1T3XT BVBA / -] (PDF.js: 1.0.738)" viewer.js:1149
"Warning: Unable to decode image: TypeError: this.colorSpace.fillRgb is not a function" util.js:204
"Warning: Dependent image isn't ready yet" util.js:204

This is a regression from PR #5165, and the obvious issue here is that colorspace.js#L1096 should read:

fillRgb: ColorSpace.prototype.fillRgb,

However, even with that addressed, the file still renders incorrectly:
screen shot 2014-09-05 at 14 21 19

/cc @kkujala

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants