Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -174,16 +174,11 @@ def create_pdf_from_markdown_strings(markdown_strings):
|
|
| 174 |
'orientation': 'Landscape'
|
| 175 |
}
|
| 176 |
|
| 177 |
-
return
|
| 178 |
|
| 179 |
def generate_pdf(html_strings):
|
| 180 |
pdf = BytesIO()
|
| 181 |
-
|
| 182 |
-
pdf_content = b''
|
| 183 |
-
for html_string in html_strings:
|
| 184 |
-
pdf_content += HTML(string=html_string).write_pdf()
|
| 185 |
-
|
| 186 |
-
pdf.write(pdf_content)
|
| 187 |
pdf.seek(0)
|
| 188 |
return pdf
|
| 189 |
|
|
|
|
| 174 |
'orientation': 'Landscape'
|
| 175 |
}
|
| 176 |
|
| 177 |
+
return combined_html
|
| 178 |
|
| 179 |
def generate_pdf(html_strings):
|
| 180 |
pdf = BytesIO()
|
| 181 |
+
pdf.write(html_strings)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
pdf.seek(0)
|
| 183 |
return pdf
|
| 184 |
|