I have a JPG / PNG / PDF image, and I would like to receive it on an A4 page, in the center, in PDF format (FYI: so that my end users can display / print it).
In any order:
- enter image to fill A4 (with white)
- convert to pdf
I can do im.save('filename.pdf', 'PDF', resolution=100.0) , to save the object Image to PDF, but I do not know how to perform a different task.
I would prefer to use Pillow, but other answers are welcome.
source share