Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. from PIL import Image
  2.  
  3. images = []
  4. for i in range(0, 12):
  5.     im = Image.open('page' + str(i) + '.png')
  6.     images.append(im)
  7.  
  8. images[0].save('test.pdf', save_all=True, append_images=images[1:])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement