1from PIL import Image
2
3image1 = Image.open(r'path where the image is stored\file name.png')
4im1 = image1.convert('RGB')
5im1.save(r'path where the pdf will be stored\new file name.pdf')
6
1from PIL import Image
2
3image1 = Image.open(r'path where the image is stored\file name.png')
4im1 = image1.convert('RGB')
5im1.save(r'path where the pdf will be stored\new file name.pdf')