Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pdf to string python

import PyPDF2

pdfFileObject = open(r"F:pdf.pdf", 'rb')

pdfReader = PyPDF2.PdfFileReader(pdfFileObject)

print(" No. Of Pages :", pdfReader.numPages)

pageObject = pdfReader.getPage(0)

print(pageObject.extractText())

pdfFileObject.close()
Source by www.simplifiedpython.net #
 
PREVIOUS NEXT
Tagged: #pdf #string #python
ADD COMMENT
Topic
Name
2+7 =