akarshrajsingh7 commited on
Commit
3499c48
·
1 Parent(s): badd822

PDF Render Issue Fix -2

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -84,8 +84,8 @@ with tab1:
84
  base64_pdf = b64encode(text_to_pdf_fastify(text)).decode("utf-8")
85
 
86
  # Embedding the PDFs in the HTML
87
- original_display = f'<iframe src="data:application/pdf;base64,{original_pdf}" width = "100%" height = 600 type="application/pdf" download="original.pdf">'
88
- pdf_display = f'<iframe src="data:application/pdf;base64,{base64_pdf}" width = "100%" height = 600 type="application/pdf" download="Modified.pdf">'
89
 
90
  # Compare Logic implementation
91
  if compare:
@@ -144,8 +144,8 @@ with tab2:
144
  base64_pdf = b64encode(text_to_pdf_fastify(text)).decode("utf-8")
145
 
146
  # Embedding the PDFs in the HTML
147
- original_display = f'<iframe src="data:application/pdf;base64,{original_pdf}" width = "100%" height = 600 type="application/pdf">'
148
- pdf_display = f'<iframe src="data:application/pdf;base64,{base64_pdf}" width = "100%" height = 600 type="application/pdf">'
149
 
150
  # Compare Logic implementation
151
  if compare:
 
84
  base64_pdf = b64encode(text_to_pdf_fastify(text)).decode("utf-8")
85
 
86
  # Embedding the PDFs in the HTML
87
+ original_display = f'<iframe src="data:application/pdf;base64,{original_pdf}" width = "100%" height = 600 type="application/pdf" download="original.pdf"></iframe>'
88
+ pdf_display = f'<iframe src="data:application/pdf;base64,{base64_pdf}" width = "100%" height = 600 type="application/pdf" download="Modified.pdf"></iframe>'
89
 
90
  # Compare Logic implementation
91
  if compare:
 
144
  base64_pdf = b64encode(text_to_pdf_fastify(text)).decode("utf-8")
145
 
146
  # Embedding the PDFs in the HTML
147
+ original_display = f'<iframe src="data:application/pdf;base64,{original_pdf}" width = "100%" height = 600 type="application/pdf"></iframe>'
148
+ pdf_display = f'<iframe src="data:application/pdf;base64,{base64_pdf}" width = "100%" height = 600 type="application/pdf"></iframe>'
149
 
150
  # Compare Logic implementation
151
  if compare: