r/code • u/ramib3lsito2 • Nov 17 '20
Working with .PDF files on Python (please help!!)
I'm looking for the best way to create and edit a pdf using python. My project involves delivering a pdf catalog of thousands of products and I need a way of automating the proccess or else I'll go crazy going though them one by one.
Thanks in advance :)
9
Upvotes
1
u/adnanholy1998 Nov 17 '20 edited Nov 17 '20
Here's a code that isn't great but gets the job done. I stored all the paths to my images in a list called files.
Cols and Rows are the number of images you want in column and rows per page.
figsize is a tuple that defines the image size (for example figsize=(20,20))