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

UnsupportedOperationException in PLImage #9

Closed
trautvetter opened this issue Dec 19, 2017 · 1 comment
Closed

UnsupportedOperationException in PLImage #9

trautvetter opened this issue Dec 19, 2017 · 1 comment
Assignees
Labels

Comments

@trautvetter
Copy link

trautvetter commented Dec 19, 2017

Hi Philip, I'm getting an UnsupportedOperationException in PLImage using certain images.
The exception message is:

Caused by: java.lang.UnsupportedOperationException: BITMASK Transparency JPEG compression is not useful, use LosslessImageFactory instead

My BufferedImage is obtained by from a URL however I'm sorry but I can't give that to you so instead I have attached the image itself.

nrl-manly16

I've been able to implement my own AbstractPLImage which uses LosslessFactory.createFromImage() to return a PDImageXObject and use this class in place of your PLImage. However I was wondering if you were aware of this problem and decided to raise this issue.

Thank you.

@phax
Copy link
Owner

phax commented Dec 19, 2017

Hi @trautvetter - this is an issue in the PDF layout engine so I moved it over to phax/ph-pdf-layout#3 and closing it here.

@phax phax closed this as completed Dec 19, 2017
@phax phax self-assigned this Dec 19, 2017
@phax phax added the wontfix label Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants