You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andrew Duffy (JIRA)" <ji...@apache.org> on 2009/09/09 00:49:57 UTC

[jira] Updated: (PDFBOX-523) IndexOutOfBoundsException in SetNonStrokingICCBasedColor

     [ https://issues.apache.org/jira/browse/PDFBOX-523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Duffy updated PDFBOX-523:
--------------------------------

    Attachment: ioob.patch

This is caused by PDSeparation.getNumberOfComponents(), which is incorrect. The attached patch fixes this.

> IndexOutOfBoundsException in SetNonStrokingICCBasedColor
> --------------------------------------------------------
>
>                 Key: PDFBOX-523
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-523
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 0.8.0-incubator
>            Reporter: Andrew Duffy
>         Attachments: ioob.patch
>
>
> java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
>  	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
>  	at java.util.ArrayList.get(ArrayList.java:322)
>  	at org.apache.pdfbox.util.operator.SetNonStrokingICCBasedColor.process(SetNonStrokingICCBasedColor.java:50)
>  	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:95)
>  	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:84)
>  	at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:510)
>  	at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:223)
>  	at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:182)
>  	at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:92)
> 	at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:686)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.