itmanir
itmanir

Reputation: 177

How to get pagination of word document?

how to get pages of a word document? I want to make a xml file from docx(or doc) file in this format:

<Page No="1">
<text>Text of page 1 here</text>
<footnote>text of footnote here</footnote>
</Page>

<Page No="2">
<text>Text of page 2 here</text>
<footnote>text of footnote here</footnote>
</Page>

.... Thanks

Upvotes: 1

Views: 722

Answers (2)

Sandip
Sandip

Reputation: 987

refer How to paginate a Word document from c# with Open XML in more

if you can generate xml for it.

  • Create a New Word Document,
  • set Pagination into that.
  • save the document as XML see tags for pagination. you might find something like footer1.xml

Upvotes: 1

Related Questions