Trailer Reference

class pdfnaut.objects.trailer.Info[source]

Bases: PdfDictionary

Document-level metadata representing the structure described in ISO 32000-2:2020 § 14.3.3 “Document information dictionary”.

Since PDF 2.0, most of the attributes here have been deprecated in favor of their equivalents in the document-level metadata stream (see PdfDocument.xmp_info), with exception of Info.creation_date and Info.modify_date.

__init__(title=None, author=None, subject=None, keywords=None, creator=None, producer=None, creation_date=None, modify_date=None, trapped=None)
author: str | None

The name of the person who created the document.

creation_date: datetime | None

The date and time the document was created, in human-readable form.

creation_date_raw: str | None

The date and time the document was created, as a text string.

creator: str | None

If the document was converted to PDF from another format (ex. DOCX), the name of the PDF processor that created the original document from which it was converted (ex. Microsoft Word).

keywords: str | None

Keywords associated with the document.

modify_date: datetime | None

The date and time the document was most recently modified, in human-readable form.

modify_date_raw: str | None

The date and time the document was most recently modified, as a text string.

producer: str | None

If the document was converted to PDF from another format (ex. PostScript), the name of the PDF processor that converted it to PDF (ex. Adobe Distiller).

subject: str | None

The subject or topic of the document.

title: str | None

The document’s title.

trapped: Literal['True', 'False', 'Unknown'] | None

A value reporting whether the document has been modified to include trapping information (see ISO 32000-2:2020 § 14.11.6 “Trapping support”).