You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You mean that at the latest version of this gem Document#paragraphs returns paragraphs in wrong order, right?
Could you give us a docx file to reproduce this behavior if you have?
The file would help us to investigate what happens.
Not exactly. :) Sorry for not being transparent. Lets say I have a docx that I want to convert to txt:
I need to know place of each element(paragraphs and tables). How to get the same order of elements they have in DOCX? Or maybe they already have that method(which returns order number from doc). I cant actually find it :(
Activity
satoryu commentedon Nov 18, 2021
You mean that at the latest version of this gem
Document#paragraphsreturns paragraphs in wrong order, right?Could you give us a docx file to reproduce this behavior if you have?
The file would help us to investigate what happens.
Thanks
Prigin commentedon Nov 18, 2021
Not exactly. :) Sorry for not being transparent. Lets say I have a docx that I want to convert to txt:
I need to know place of each element(paragraphs and tables). How to get the same order of elements they have in DOCX? Or maybe they already have that method(which returns order number from doc). I cant actually find it :(
aunghtain commentedon Mar 10, 2022
I was able to do this as followed. I'm using private vars/methods, but if they open up more APIs in the future, we won't have to.
aunghtain commentedon Mar 10, 2022
if u just want text, u don't need to parse them as paragraph/table. u can just get as "c.content"