Skip to content

Instantly share code, notes, and snippets.

@cristiangomez94
Created March 24, 2020 02:22
Show Gist options
  • Save cristiangomez94/67d7fad94e2d7db2a8d0690e301c2997 to your computer and use it in GitHub Desktop.
Save cristiangomez94/67d7fad94e2d7db2a8d0690e301c2997 to your computer and use it in GitHub Desktop.
PyPDF2
pdfFileObj = open('your_pdf_name.pdf','rb')
pdfReader = PyPDF2.PdfFileReader(pdfFileObj)
pdfReader.numPages
pageObj = pdfReader.getPage(0)
print(pageObj.extracText())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment