jeudi 25 octobre 2018

How to read a checkbox value of a pdf single page file in python?

i have tried PyPDF2 but there is no class defined to extract checkbox values.

import PyPDF2

pdfFileObj = open('C:\Source Files\Fillable_PDF_Sample_from.pdf', 'rb')

pdfReader = PyPDF2.PdfFileReader(pdfFileObj)

print(pdfReader.numPages)

pageObj = pdfReader.getPage(0)

print(pageObj.extractText())

pdfFileObj.close()




Aucun commentaire:

Enregistrer un commentaire