reading/writing xmp metadatas on pdf files through pypdf
Asked Answered
P

1

7

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?

Poeticize answered 21/1, 2009 at 19:43 Comment(0)
N
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.

Noami answered 23/1, 2009 at 12:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.