unidoc / unioffice

Pure go library for creating and processing Office Word (.docx), Excel (.xlsx) and Powerpoint (.pptx) documents
https://unidoc.io/unioffice/
Other
4.37k stars 473 forks source link

How to know a textline belongs to which page in a docx file #478

Open hoangthanh283 opened 2 years ago

hoangthanh283 commented 2 years ago

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.

github-actions[bot] commented 2 years ago

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/