Im_1.save(r'path where the pdf will be stored\new file name.pdf')įor our example, the PDF file will be stored under the same path where the original image is stored (from Step 2). Image_1 = Image.open(r'path where the image is stored\file name.png') C:\Users\Ron\Desktop\Test\view_1.png Step 3: Convert the image to PDF using Pythonįor the final step, you may use the template below in order to convert the image to PDF: from PIL import Image
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |