Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.1, 5.0.4
-
Fix Version/s: 5.0.5
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:Windows 64bits
Description
Scenario:
Given I create a PDF using microsoft word 2007
When I try to retrieve the text using ICEpdf
Then all the text is saved in the optional lines attribute, which does not conserve the order.
optionalLines attribute is a HashMap, which does not conserve the order. I suggest to change it to a LinkedHashMap so this works properly.
I am assuming that the optional lines should be ordered as by using this kind of map I can retrieve the text as it is in the PDF.
Regards,
Enrique
Given I create a PDF using microsoft word 2007
When I try to retrieve the text using ICEpdf
Then all the text is saved in the optional lines attribute, which does not conserve the order.
optionalLines attribute is a HashMap, which does not conserve the order. I suggest to change it to a LinkedHashMap so this works properly.
I am assuming that the optional lines should be ordered as by using this kind of map I can retrieve the text as it is in the PDF.
Regards,
Enrique
Activity
Enrique González
created issue -
Enrique González
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | another_pdf_example.pdf [ 16613 ] |
Patrick Corless
made changes -
Fix Version/s | 5.0.5 [ 11373 ] |
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #39892 | Wed Feb 05 10:55:03 MST 2014 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/PageText.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #39893 | Wed Feb 05 10:55:13 MST 2014 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/PageText.java
|
Patrick Corless
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Find the pdf I am talking about attached. Here you can find the text I generate with the current map (it changes every execution):
And here with the LinkedHashMap: