python-PDF操作
import PyPDF2
# 从PDF提取文本
def selectPDF():
pdfFile = open('Python1.pdf','rb')
pdfRead = PyPDF2.PdfFileReader(pdfFile)
print(pdfRead.numPages)
page = pdfRead.getPage(1)
print(page.extractText())
selectPDF()