LuisBlanche commited on
Commit
d9403bf
·
verified ·
1 Parent(s): 1d40ad2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -286,12 +286,8 @@ def convert_pdf_to_image(pdf_buffer):
286
 
287
  buffer = BytesIO()
288
  canvas = Canvas(buffer, pagesize=A4)
289
- from reportlab.pdfgen.canvas import Canvas
290
-
291
- canvas.drawText("Preview of the PDF")
292
  canvas.showPage()
293
  canvas.save()
294
-
295
  buffer.seek(0)
296
  pil_image = drawToPIL(Drawing)
297
  return pil_image
 
286
 
287
  buffer = BytesIO()
288
  canvas = Canvas(buffer, pagesize=A4)
 
 
 
289
  canvas.showPage()
290
  canvas.save()
 
291
  buffer.seek(0)
292
  pil_image = drawToPIL(Drawing)
293
  return pil_image