Get page number in .docx file #9535
Unanswered
FrenchGithubUser
asked this question in
Q&A
Replies: 1 comment 3 replies
-
No, I don't think there's any way to do this with pandoc. Page numbers are not available in the docx itself; they are constructed by Word in rendering it. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using pandoc to conver a
docx
file tomd
which works fine. But I'd like to associate every heading to a page number for further processing. Is there a way to do so ? Or maybe a way to convert thedocx
file to another format which will be more convenient to extract the page numbers from ?What I currently tried to do was to convert the
docx
file topdf
and then match the headings from the markdown to the ones in the pdf. But this works poorly as some headings are not formatted in the same way in the pdf/docx.Beta Was this translation helpful? Give feedback.
All reactions