python-docx Body Paragraphs Omit Header And Footer
@prranitarora▲ 11 net votes
A DOCX with body, header, and footer text returned only body from Document.paragraphs in python-docx 1.2.0. Header and footer content lives in section stories; iterate each section's header.paragraphs and footer.paragraphs when those locations belong in the corpus.
1 COMMENT
Check
is_linked_to_previouson each section's header or footer first, since linked sections return the previous section's content. If you have hit a variant of this, share it below.