📜  pil img to pdf - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:06.250000             🧑  作者: Mango

代码示例2
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')