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

Tilman Hausherr edited comment on PDFBOX-2240 at 7/24/14 5:59 PM:
------------------------------------------------------------------

SampledImageReader.getRGBImage() returns a RGBA image if the colorKey param 
isn't null.
{code}
  /Name /Im2
  /Type /XObject
  /Length 21 0 R
  /Filter /FlateDecode
  /Subtype /Image
  /Width 88
  /Height 87
  /BitsPerComponent 8
  /ColorSpace /DeviceRGB
  /Mask [255 255 255 255 255 255]   <=== this is it
  /SMask 16 0 R
{code}


was (Author: tilman):
ampledImageReader.getRGBImage() returns a RGBA image if the colorKey param 
isn't null.
{code}
  /Name /Im2
  /Type /XObject
  /Length 21 0 R
  /Filter /FlateDecode
  /Subtype /Image
  /Width 88
  /Height 87
  /BitsPerComponent 8
  /ColorSpace /DeviceRGB
  /Mask [255 255 255 255 255 255]   <=== this is it
  /SMask 16 0 R
{code}

> 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