views:

449

answers:

1

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?

+1  A: 

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.

kylebrooks