-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
PdfWriterThe PdfWriter component is affectedThe PdfWriter component is affectedis-featureA feature requestA feature request
Description
Explanation
Creating XMP metadata currently requires knowing the corresponding minimal structure. To improve the experience, we should provide a classmethod on the XmpInformation class and a short documentation for how to add such metadata.
Code Example
from pypdf import PdfReader, PdfWriter
from pypdf.xmp import XmpInformation
xmp_information: XmpInformation = XmpInformation.create()
writer = PdfWriter(clone_from="file.pdf")
writer.xmp_metadata = xmp_information
writer.write("output.pdf")
Metadata
Metadata
Assignees
Labels
PdfWriterThe PdfWriter component is affectedThe PdfWriter component is affectedis-featureA feature requestA feature request