com3dian commited on
Commit
9c38c06
·
verified ·
1 Parent(s): 16c4994

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -178,7 +178,7 @@ def create_pdf_from_markdown_strings(markdown_strings):
178
 
179
  def generate_pdf(html_strings):
180
  pdf = BytesIO()
181
- pdf.write(html_strings)
182
  pdf.seek(0)
183
  return pdf
184
 
 
178
 
179
  def generate_pdf(html_strings):
180
  pdf = BytesIO()
181
+ HTML(string=html_string).write_pdf(pdf)
182
  pdf.seek(0)
183
  return pdf
184