I can read xmp metadata via pyPdf using this code:
a = pyPdf.PdfFileReader(open(self.fileName))
b = a.getXmpMetadata()
c = b.pdf_keywords
but: is this the best way?
And if I do not use the pdf_keywords property?
And is there any way to set this metadata with pyPdf?
source
share