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

5 lines
180 B
Python
Raw Normal View History

2022-10-02 09:04:11 +00:00
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