unioffice
unioffice copied to clipboard
How to know a textline belongs to which page in a docx file
Description
Is there any way to know a text line belongs to which page in a .docx file?
Expected Behavior
We should have an attribute in a text Item to get the page information:
for ei, e := range extracted.Items {
text: = e.Text`
page_index = e.PageIndex
Actual Behavior
There is only Text
, DrawingInfo
, Paragraph
, Hyperlink
, TableInfo
BUT no PageInfo
in the TextItem
.
Please include a reproducible code snippet or document attachment that demonstrates the issue.
Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized, other issues go into our backlog where they are assessed and fitted into the roadmap when suitable. If you need to get this done, consider buying a license which also enables you to use it in your commercial products. More information can be found on https://unidoc.io/