6

I can read xmp metadatas through pypdf with this code:

from pypdf import PdfReader

a = PdfReader("file.pdf")
b = a.xmp_metadata
c = b.pdf_keywords

But is this the best way?

And if I don't use the pdf_keywords property?

Is there any way to set these metadatas with pypdf?

Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
JuanDeLosMuertos
  • 4,532
  • 15
  • 55
  • 87

1 Answers1

3

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
  • 433
  • 2
  • 5