[
https://issues.apache.org/jira/browse/PDFBOX-927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002518#comment-13002518
]
Andreas Lehmkühler commented on PDFBOX-927:
-------------------------------------------
This issue is about extracting images and PDFBOX-942 is about adding images to
a pdf. So I guess both are not related to each other.
I'd a look at the code. It just uses the embedded stream and writes the data to
the given output stream and it doesn't use the given colorspace. Maybe that is
the reason for the rendering issue. I treid to use the getRGBImage method and
to write the resulting BufferedImage to a file using ImageIO but I didn't work
either.
A possible solution could be to decode the stream using our own implementation,
which doesn't exist yet, instead of using the ImageIO and to apply the given
colorspace.
> Problem on writing some kind of images to a File in filesystem
> --------------------------------------------------------------
>
> Key: PDFBOX-927
> URL: https://issues.apache.org/jira/browse/PDFBOX-927
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.2.1, 1.3.1, 1.4.0
> Environment: JDK5 / 6
> Reporter: JOSE FREITAS
> Priority: Minor
> Attachments: 1___Im0-1.jpg, ExtractImages.java, comparison.png, test
> with pdindexed.pdf
>
>
> I have an image object which is an instance of PDXObjectImage.
> If it has PDIndexed as colorspace.
>
> "image.getColorSpace() instanceof PDIndexed"
> the image is wrongly rendered.
> Is there any known issue with this colorSpace?
> I think the problem could be at:
> image.write2file(...) or
> image.write2OutputStream(...);
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira