Created
March 27, 2018 02:46
-
-
Save parzibyte/eb91bd0c634a92309f590fc995897630 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import img2pdf | |
imagenes_jpg = [archivo for archivo in os.listdir('./') if archivo.endswith(".jpg")] | |
with open("documento.pdf", "wb") as documento: | |
documento.write(img2pdf.convert(imagenes_jpg)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment