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
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: