Advertisement
Guest User

images to pdf

a guest
Nov 14th, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import glob
  2. import img2pdf
  3. #print(glob.glob("C:/temp/real-estate/*.jpg"))
  4.  
  5. # multiple inputs (variant 1)
  6. with open("name.pdf","wb") as f:
  7. f.write(img2pdf.convert(glob.glob("C:/temp/real-estate/*.jpg")))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement