Center footer page numbers
This commit is contained in:
@@ -556,7 +556,7 @@ def create_transcript_docx(text: str, filename: str):
|
|||||||
footer = section.footer
|
footer = section.footer
|
||||||
footer.is_linked_to_previous = False
|
footer.is_linked_to_previous = False
|
||||||
footer_para = footer.paragraphs[0] if footer.paragraphs else footer.add_paragraph()
|
footer_para = footer.paragraphs[0] if footer.paragraphs else footer.add_paragraph()
|
||||||
footer_para.alignment = WD_ALIGN_PARAGRAPH.LEFT
|
footer_para.alignment = WD_ALIGN_PARAGRAPH.CENTER
|
||||||
|
|
||||||
# Clear any existing content
|
# Clear any existing content
|
||||||
for r in footer_para.runs:
|
for r in footer_para.runs:
|
||||||
|
|||||||
Reference in New Issue
Block a user