Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 4.2
-
Fix Version/s: 4.2.2
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:-
Description
The issue depends on which OCR tool is used, most notably PixEdit: http://www.pixedit.com/ocr.aspx. The attached test file "10279_Regular.pdf" has been used to create "10279_OCR.pdf" using PixEdit. When viewing the OCR version, the following exception is thrown by ICEpdf:
FINE: Error initializing Page.
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:85)
at java.util.Stack.pop(Stack.java:67)
at org.icepdf.core.util.ContentParser.consume_rg(ContentParser.java:1646)
at org.icepdf.core.util.ContentParser.parse(ContentParser.java:592)
at org.icepdf.core.pobjects.Page.init(Page.java:390)
at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1077)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
FINE: Error initializing Page.
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:85)
at java.util.Stack.pop(Stack.java:67)
at org.icepdf.core.util.ContentParser.consume_rg(ContentParser.java:1646)
at org.icepdf.core.util.ContentParser.parse(ContentParser.java:592)
at org.icepdf.core.pobjects.Page.init(Page.java:390)
at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1077)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Activity
Tyler Johnson
created issue -
Tyler Johnson
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | 10279_OCR.zip [ 13340 ] |
Tyler Johnson
made changes -
Summary | Error initializing PDF with specific OCR tool | Error initializing PDF when using specific OCR tool |
Salesforce Case | [5007000000GxXGa] | |
Fix Version/s | 4.2 [ 10243 ] |
Patrick Corless
made changes -
Fix Version/s | 4.2.2 [ 10265 ] | |
Fix Version/s | 4.2 [ 10243 ] | |
Affects Version/s | 4.2 [ 10243 ] | |
Affects Version/s | 4.2.2 [ 10265 ] |
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Duplicate [ 3 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
This is related to a malformed content stream.
Q0 0 0 rg
For some reason the encoder is properly inserting a space between the Q and 0.
PDF-215describes a similar problem from another encoder. Good news is that there is a fix for it and is available in the 4.2.2 preview 1 release.