Answers for "pil img to pdf"

0

pil img to pdf

from PIL import Image

image1 = Image.open(r'path where the image is stored\file name.png')
im1 = image1.convert('RGB')
im1.save(r'path where the pdf will be stored\new file name.pdf')
Posted by: Guest on January-25-2021
0

pil img to pdf

from PIL import Image

image1 = Image.open(r'path where the image is stored\file name.png')
im1 = image1.convert('RGB')
im1.save(r'path where the pdf will be stored\new file name.pdf')
Posted by: Guest on January-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language