Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ def create_docx(text_content):
|
|
| 58 |
parser.add_html_to_document(html_content, document)
|
| 59 |
|
| 60 |
document.add_paragraph("")
|
| 61 |
-
footer_p = document.add_paragraph(
|
| 62 |
footer_p.alignment = WD_ALIGN_PARAGRAPH.CENTER
|
| 63 |
for run in footer_p.runs:
|
| 64 |
run.bold = True
|
|
@@ -79,7 +79,7 @@ def create_docx(text_content):
|
|
| 79 |
p.alignment = WD_ALIGN_PARAGRAPH.RIGHT
|
| 80 |
|
| 81 |
document.add_paragraph("\n")
|
| 82 |
-
footer_p = document.add_paragraph(
|
| 83 |
footer_p.alignment = WD_ALIGN_PARAGRAPH.CENTER
|
| 84 |
for run in footer_p.runs: run.bold = True
|
| 85 |
|
|
@@ -90,7 +90,7 @@ def create_docx(text_content):
|
|
| 90 |
|
| 91 |
def create_pdf_with_weasyprint(text_content):
|
| 92 |
html_body = get_base_html_for_conversion(text_content)
|
| 93 |
-
reshaped_footer =
|
| 94 |
|
| 95 |
full_html = f"""
|
| 96 |
<!DOCTYPE html><html lang="fa"><head><meta charset="UTF-8"><title>Exported PDF</title>
|
|
@@ -129,7 +129,7 @@ def create_txt(text_content):
|
|
| 129 |
|
| 130 |
def create_html(text_content):
|
| 131 |
html_body = get_base_html_for_conversion(text_content)
|
| 132 |
-
reshaped_footer =
|
| 133 |
full_html = f"""
|
| 134 |
<!DOCTYPE html><html lang="fa"><head><meta charset="UTF-8"><title>Exported File</title>
|
| 135 |
<style>
|
|
|
|
| 58 |
parser.add_html_to_document(html_content, document)
|
| 59 |
|
| 60 |
document.add_paragraph("")
|
| 61 |
+
footer_p = document.add_paragraph(FOOTER_TEXT)
|
| 62 |
footer_p.alignment = WD_ALIGN_PARAGRAPH.CENTER
|
| 63 |
for run in footer_p.runs:
|
| 64 |
run.bold = True
|
|
|
|
| 79 |
p.alignment = WD_ALIGN_PARAGRAPH.RIGHT
|
| 80 |
|
| 81 |
document.add_paragraph("\n")
|
| 82 |
+
footer_p = document.add_paragraph(FOOTER_TEXT)
|
| 83 |
footer_p.alignment = WD_ALIGN_PARAGRAPH.CENTER
|
| 84 |
for run in footer_p.runs: run.bold = True
|
| 85 |
|
|
|
|
| 90 |
|
| 91 |
def create_pdf_with_weasyprint(text_content):
|
| 92 |
html_body = get_base_html_for_conversion(text_content)
|
| 93 |
+
reshaped_footer = FOOTER_TEXT
|
| 94 |
|
| 95 |
full_html = f"""
|
| 96 |
<!DOCTYPE html><html lang="fa"><head><meta charset="UTF-8"><title>Exported PDF</title>
|
|
|
|
| 129 |
|
| 130 |
def create_html(text_content):
|
| 131 |
html_body = get_base_html_for_conversion(text_content)
|
| 132 |
+
reshaped_footer = FOOTER_TEXT
|
| 133 |
full_html = f"""
|
| 134 |
<!DOCTYPE html><html lang="fa"><head><meta charset="UTF-8"><title>Exported File</title>
|
| 135 |
<style>
|