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 2014/07/21 20:06:40 UTC

[jira] [Resolved] (PDFBOX-2214) EmptyStackException from PDFBOX-161

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

Tilman Hausherr resolved PDFBOX-2214.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0
                   1.8.7
         Assignee: Tilman Hausherr

The graphics stack must have at least one element because of peek() in PDFStreamEngine, so I changed the previous change to "> 1" instead of "> 0". I also modified the log that it is an error and not just a debug, because it happens with a broken PDF. Done in rev 1612360 for the trunk and rev 1612363 for the 1.8 branch. The rendered image is now better than Adobe Reader.

> EmptyStackException from PDFBOX-161
> -----------------------------------
>
>                 Key: PDFBOX-2214
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2214
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 1.8.6, 1.8.7, 2.0.0
>            Reporter: simon steiner
>            Assignee: Tilman Hausherr
>             Fix For: 1.8.7, 2.0.0
>
>         Attachments: PDFBOX-161.pdf
>
>
> java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage PDFBOX161-E12860v10P096469EAs.pdf 
> Jul 17, 2014 4:47:09 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
> INFO: unsupported/disabled operation: i
> Exception in thread "main" java.util.EmptyStackException
> 	at java.util.Stack.peek(Stack.java:102)
> 	at org.apache.pdfbox.util.PDFStreamEngine.saveGraphicsState(PDFStreamEngine.java:604)



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