Answers for "python library pdf to text"

0

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()
Posted by: Guest on July-19-2020
0

pdf to string python

pip install PyPDF2
import PyPDF2
pdfFileObject=open(r"F:fileName.pdf",'rb')
pdfReader = PyPDF2.PdfFileReader(pdfFileObject) //Creating reader obj
print(" No. Of Pages :", pdfReader.numPages)//To know no.of pages
Posted by: Guest on July-19-2020

Python Answers by Framework

Browse Popular Code Answers by Language