Table of Contents

Class PdfDocumentInfo

Namespace
MiPdf
Assembly
MiPdf.dll

Accessor for the document information dictionary (trailer /Info).

public sealed class PdfDocumentInfo
Inheritance
PdfDocumentInfo
Inherited Members

Properties

Author

Author (/Author); null removes the entry.

public string? Author { get; set; }

Property Value

string

CreationDate

Creation date (/CreationDate); null if missing or not parsable. null removes the entry.

public DateTimeOffset? CreationDate { get; set; }

Property Value

DateTimeOffset?

Creator

Application that created the original content (/Creator); null removes the entry.

public string? Creator { get; set; }

Property Value

string

Dictionary

The underlying dictionary; created on first write access.

public PdfDictionary? Dictionary { get; }

Property Value

PdfDictionary

Remarks

Documents without a document information dictionary (PDF 2.0 deprecates it, PDF/A-4 forbids it) are read from the XMP metadata instead; the first change then creates the dictionary from these values.

Keywords

Keywords (/Keywords); null removes the entry.

public string? Keywords { get; set; }

Property Value

string

ModificationDate

Modification date (/ModDate); null if missing or not parsable. null removes the entry.

public DateTimeOffset? ModificationDate { get; set; }

Property Value

DateTimeOffset?

Producer

Application that produced the PDF (/Producer); null removes the entry.

public string? Producer { get; set; }

Property Value

string

Subject

Subject (/Subject); null removes the entry.

public string? Subject { get; set; }

Property Value

string

Title

Document title (/Title); null removes the entry.

public string? Title { get; set; }

Property Value

string

Methods

Get(PdfName)

Reads a custom entry.

public string? Get(PdfName key)

Parameters

key PdfName

Returns

string

Remove(PdfName)

Removes an entry.

public void Remove(PdfName key)

Parameters

key PdfName

Set(PdfName, string?)

Writes a custom entry; null removes it.

public void Set(PdfName key, string? value)

Parameters

key PdfName
value string