PdfDocumentInfo

data class PdfDocumentInfo(val title: String? = null, val author: String? = null, val subject: String? = null, val keywords: String? = null, val creator: String? = null, val producer: String? = null, val creationDate: PdfDate? = null, val modDate: PdfDate? = null, val trapped: PdfDocumentInfo.Trapped = Trapped.Unknown, val custom: Map<String, String> = emptyMap())

Contents of the trailer's /Info dictionary (ISO 32000-1 §14.3.3).

Every field is optional in the spec; missing entries are null. Custom (non-standard) string entries are preserved in custom so callers can inspect them. /Trapped is a /Name per spec. We expose it as the typed Trapped enum.

Note: PDF 2.0 deprecates /Info in favour of the XMP metadata stream on the document catalog. We still surface /Info because almost every PDF in the wild uses it; XMP support is a separate session.

Constructors

Link copied to clipboard
constructor(title: String? = null, author: String? = null, subject: String? = null, keywords: String? = null, creator: String? = null, producer: String? = null, creationDate: PdfDate? = null, modDate: PdfDate? = null, trapped: PdfDocumentInfo.Trapped = Trapped.Unknown, custom: Map<String, String> = emptyMap())

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Any /Info entry whose key is not one of the standard nine, as raw text.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard