You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Dominic Tubach (JIRA)" <ji...@apache.org> on 2014/08/29 13:48:54 UTC

[jira] [Created] (PDFBOX-2297) PDImageXObject: Add method getColorSpaces()

Dominic Tubach created PDFBOX-2297:
--------------------------------------

             Summary: 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)