In [1]:
import PyPDF2
In [2]:
pdf = PyPDF2.PdfFileReader('data/temp/Simple PDF 2.0 file.pdf')
In [3]:
print(pdf.documentInfo)
In [4]:
print(type(pdf.xmpMetadata))
In [5]:
print(pdf.xmpMetadata.dc_title)
In [6]:
print(pdf.xmpMetadata.pdf_keywords)
In [7]:
print(pdf.xmpMetadata.xmp_metadataDate)