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

Tilman Hausherr edited comment on PDFBOX-2214 at 7/21/14 6:08 PM:
------------------------------------------------------------------

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 & 
1612365 for the 1.8 branch. The rendered image is now better than Adobe Reader.


was (Author: tilman):
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)

Reply via email to