Skip to content

Instantly share code, notes, and snippets.

@saltlakeryan
Last active September 30, 2015 17:16
Show Gist options
  • Save saltlakeryan/4cd100653191e84a2f3c to your computer and use it in GitHub Desktop.
Save saltlakeryan/4cd100653191e84a2f3c to your computer and use it in GitHub Desktop.
import img2pdf
pdf_bytes = img2pdf.convert(['test.jpg'])
file = open("name.pdf","wb")
file.write(pdf_bytes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment