python-scripts/scripts/PNG_To_PDF/png-to-pdf.py

5 lines
128 B
Python
Raw Normal View History

2022-10-02 10:49:01 +00:00
from PIL import Image
image1 = Image.open(r'png-to-pdf.png')
impdf = image1.convert('RGB')
impdf.save(r'png-to-pdf.pdf') # noqa