Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.2
-
Fix Version/s: 5.0.3
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:any
-
ICEsoft Forum Reference:
Description
This one came in through the forms. The document in question has two content stream the second being initialized from an xObject. The xobject contains all of the documents contact. During text extraction a xobject should pass it's text up to the parent content stream as was the case in 4.x
When optional content (layers) was added in the 5.x an error was made in the implementation. The method PageText.getPageLines() was changed to return a copy of the pageLines array. The copy was then altered to respect if the text was actually visible. The copy was then returned and thus the passing of the text from the child to the parent didn't take place as the original pageLines data was not altered.
When optional content (layers) was added in the 5.x an error was made in the implementation. The method PageText.getPageLines() was changed to return a copy of the pageLines array. The copy was then altered to respect if the text was actually visible. The copy was then returned and thus the passing of the text from the child to the parent didn't take place as the original pageLines data was not altered.
I've added a new method PageTExt.addPageLines( ArrayList<LineText> pageLines) which will always add the text the the instance's pageLines array and not the copy.