Metadata¶
The PDF specification contain two types of metadata, the newer XMP (Extensible Metadata Platform, XML-based) and older DocumentInformation dictionary. The PDF 2.0 specification removes the DocumentInformation dictionary.
Currently, the following methods on fpdf.FPDF allow to set metadata information in the DocumentInformation dictionary:
set_title()set_lang()set_subject()set_author()set_keywords()set_producer()set_creator()set_creation_date()set_xmp_metadata(), that requires you to craft the necessary XML string