Skip to content

Instantly share code, notes, and snippets.

@rcgalbo
Last active August 24, 2018 14:18
Show Gist options
  • Save rcgalbo/b0ea28a01be43aed6f1dc58cd2abd40a to your computer and use it in GitHub Desktop.
Save rcgalbo/b0ea28a01be43aed6f1dc58cd2abd40a to your computer and use it in GitHub Desktop.
convert a pdf file to an image
from pdf2image import convert_from_path
image = convert_from_path("path_to_pdf.pdf")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment