You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2016/05/16 16:42:12 UTC

[jira] [Updated] (PDFBOX-3349) PDPageTree.get Index Out of Bounds Exception

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

Tilman Hausherr updated PDFBOX-3349:
------------------------------------
    Attachment: sample-screenshot-pdfdebugger.png

Please download the PDFDebugger app and try to create a screenshot like this one. I assume your parameter to getPage() was 1. Does the PDF file have 2 pages?

> PDPageTree.get Index Out of Bounds Exception
> --------------------------------------------
>
>                 Key: PDFBOX-3349
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3349
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.1
>         Environment: Oracle JDK 1.8.0_92 x64 running in Tomcat 7.0.69 on Linux.
>            Reporter: George Sexton
>            Priority: Minor
>         Attachments: sample-screenshot-pdfdebugger.png
>
>
> When rendering a page as an image to create a thumbnail, I get the exception:
> java.lang.IndexOutOfBoundsException: Index out of bounds: 2
>         at org.apache.pdfbox.pdmodel.PDPageTree.get(PDPageTree.java:284)
>         at org.apache.pdfbox.pdmodel.PDPageTree.get(PDPageTree.java:209)
>         at org.apache.pdfbox.pdmodel.PDDocument.getPage(PDDocument.java:1148)
>         at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:108)
>         at org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:94)
> Unfortunately, I can't attach the image because it's proprietary. I haven't included my code because it's rendering other things files OK.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org