Convert image to pdf using python
To convert an image to PDF using Python, you can use the Pillow library.
Example:
Here's an example of how you can do this:
This will convert the water.jpg file to a PDF file called water.pdf.
Note: The image path should be defined completely or just place image to same folder to the code.
If you have any queries do let me know in comments. If not, you can say hi too. I love it 🙂.
0 Comments