Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python read pdf

from PyPDF2 import PDFFileReader
temp = open('document_path.PDF', 'rb')
PDF_read = PDFFileReader(temp)
first_page = PDF_read.getPage(0)
print(first_page.extractText())
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #python #read #pdf
ADD COMMENT
Topic
Name
1+9 =