Update combined .docx order: cover page, page break, summary, page break, transcript
This commit is contained in:
+13
-12
@@ -454,24 +454,25 @@ def create_combined_docx(
|
|||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Create a combined .docx with:
|
Create a combined .docx with:
|
||||||
- Transcript cover page
|
1) Transcript cover page
|
||||||
- Transcript content
|
2) Page break
|
||||||
- Page break
|
3) Summary content
|
||||||
- Summary cover page
|
4) Page break
|
||||||
- Summary content
|
5) Transcript content
|
||||||
"""
|
"""
|
||||||
doc = Document()
|
doc = Document()
|
||||||
_setup_docx_style(doc)
|
_setup_docx_style(doc)
|
||||||
|
|
||||||
# Transcript cover page
|
# 1) Transcript cover page (includes trailing page break)
|
||||||
_add_cover_page(doc, "TRANSCRIPT", transcript_cover_date, transcript_cover_desc)
|
_add_cover_page(doc, "TRANSCRIPT", transcript_cover_date, transcript_cover_desc)
|
||||||
_add_transcript_content(doc, transcript_text)
|
|
||||||
|
|
||||||
# Page break before summary
|
# 3) Summary content
|
||||||
doc.add_page_break()
|
|
||||||
|
|
||||||
# Summary cover page
|
|
||||||
_add_cover_page(doc, "SUMMARY", summary_cover_date, summary_cover_desc)
|
|
||||||
_add_summary_content(doc, summary_text)
|
_add_summary_content(doc, summary_text)
|
||||||
|
|
||||||
|
# 4) Page break before transcript
|
||||||
|
doc.add_page_break()
|
||||||
|
|
||||||
|
# 5) Transcript content
|
||||||
|
_add_transcript_content(doc, transcript_text)
|
||||||
|
|
||||||
doc.save(filename)
|
doc.save(filename)
|
||||||
|
|||||||
Reference in New Issue
Block a user