python-scripts/scripts/png-to-pdf.py
2022-10-02 14:34:11 +05:30

5 lines
180 B
Python

from PIL import Image
image1 = Image.open(r'C:\Users\user\Downloads\png-to-pdf.png')
impdf = image1.convert('RGB')
impdf.save(r'C:\Users\user\Downloads\png-to-pdf.pdf') # noqa