Bug 62402

Summary: XWPFWordExtractor : Incorrect order of text extracted in document(with floating tables)
Product: POI Reporter: Madhav <ktsmadhav>
Component: XWPFAssignee: POI Developers List <dev>
Status: NEW ---    
Severity: major    
Priority: P2    
Version: 3.17-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: test document for bug

Description Madhav 2018-05-23 13:38:48 UTC
Created attachment 35946 [details]
test document for bug

I am using apache poi for docx(xwpf) content extraction.

 I extracted documents content in order iterating through List<IBodyElements>, but it is not the same as that of viewed in ms-word application. 

Also XWPFWordExtractor renders in the same order i.e, incorrect(reverse)

In the text document attached below, there is heading which is followed by table.
But its rendered in reverse order by above mentioned method.

I further debugged and came to know it only occurred with floating table(in my case).

Finally my question is that does poi handle floating tables order in the document.

Thanks in advance.