Here’s how to convert all images in a folder into a pdf file with just python and PIL!
First install PIL
pip install pillow
then save this script into the folder with the images and launch it
from PIL import Image from glob import glob iml = [] im1 = Image.open(glob("*.png")[0]) for img in glob("*.png"): iml.append(Image.open(img)) pdf = "turismo1.pdf" im1.save(pdf, "PDF" ,resolution=100.0, save_all=True, append_images=iml)
Subscribe to the newsletter for updates
Tkinter templates
My youtube channel
Twitter: @pythonprogrammi - python_pygame