python-scripts/scripts/PNG_To_PDF/png-to-pdf.py
2022-10-02 16:19:01 +05:30

5 lines
128 B
Python

from PIL import Image
image1 = Image.open(r'png-to-pdf.png')
impdf = image1.convert('RGB')
impdf.save(r'png-to-pdf.pdf') # noqa