You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/08/29 18:27:53 UTC
[jira] [Commented] (PDFBOX-2297) PDImageXObject: Add method
getColorSpaces()
[ https://issues.apache.org/jira/browse/PDFBOX-2297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14115405#comment-14115405 ]
John Hewson commented on PDFBOX-2297:
-------------------------------------
Thanks but exposing implementation details such as the color spaces isn't desirable, instead we should add a method to fetch the alternate images but make the implementation decode the images on-the-fly.
> PDImageXObject: Add method getColorSpaces()
> -------------------------------------------
>
> Key: PDFBOX-2297
> URL: https://issues.apache.org/jira/browse/PDFBOX-2297
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Affects Versions: 2.0.0
> Reporter: Dominic Tubach
> Attachments: PDImageXObjectColorSpaces.patch
>
>
> PDImageXObject should contain the method getColorSpaces() to get the color spaces that were passed to the constructor. I need it for the following use case:
> An image XObject may contain alternate images in the Alternates dictionary entry. I want to create an PDImageXObject for one of the alternate images, so I need the color spaces to pass them to the constructor. Theoretically a method that returns a list of PDImageXObjects containing all alternate images would also be possible. But as long as a PDImageXObject is always decoded it would produce unnecessary overhead as I only need one of them.
--
This message was sent by Atlassian JIRA
(v6.2#6252)