Samarth991 commited on
Commit
8a9fdea
1 Parent(s): f3b313e

Update read_photodocument.py

Browse files
Files changed (1) hide show
  1. read_photodocument.py +2 -0
read_photodocument.py CHANGED
@@ -31,7 +31,9 @@ def simple_rename(filepath, target_ext=".txt"):
31
 
32
 
33
  def convert_image_to_pdf(image_path,model=None):
 
34
  pdf_path = image_path.replace('.jpg','.pdf')
 
35
  image = Image.open(image_path)
36
  pdf_bytes = img2pdf.convert(image.filename)
37
  file = open(pdf_path, "wb")
 
31
 
32
 
33
  def convert_image_to_pdf(image_path,model=None):
34
+ print(image_path)
35
  pdf_path = image_path.replace('.jpg','.pdf')
36
+ print(pdf_path)
37
  image = Image.open(image_path)
38
  pdf_bytes = img2pdf.convert(image.filename)
39
  file = open(pdf_path, "wb")