[ 
https://issues.apache.org/jira/browse/PDFBOX-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14074881#comment-14074881
 ] 

John Hewson commented on PDFBOX-2240:
-------------------------------------

The "RGB" in "getRGBImage" refers to the color space rather than the exact 
image format., this behaviour is in the JavaDoc:

{quote}
Returns the content of the given image as an AWT buffered image with an RGB 
color space.
 If a color key mask is provided then an ARGB image is returned instead.
{quote}

The image is either RGB or ARGB. Color key masks are very rare and images use a 
lot of memory and CPU time, especially alpha channels. 

> ArrayIndexOutOfBoundsException PDImageXObject.applyMask
> -------------------------------------------------------
>
>                 Key: PDFBOX-2240
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2240
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: simon steiner
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.0
>
>         Attachments: out.pdf
>
>
> java.lang.ArrayIndexOutOfBoundsException: 3
>       at java.awt.image.SampleModel.getPixel(SampleModel.java:712)
>       at java.awt.image.Raster.getPixel(Raster.java:1539)
>       at 
> org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.applyMask(PDImageXObject.java:272)
> java -cp pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar 
> org.apache.pdfbox.tools.PDFToImage out.pdf



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to