I can read xmp metadatas through pyPdf with this code:
a = pyPdf.PdfFileReader(open(self.fileName))
b = a.getXmpMetadata()
c = b.pdf_keywords
but: is this the best way?
And if I don't use the pdf_keywords property?
And is there any way to set these metadatas with pyPdf?
As far as I can see, this is the best way to do so - and there is no way to change the metadata with pyPDF.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With