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
CreationDate
Creation date (/CreationDate); null if missing or not parsable. null removes the entry.
public DateTimeOffset? CreationDate { get; set; }
Property Value
Creator
Application that created the original content (/Creator); null removes the entry.
public string? Creator { get; set; }
Property Value
Dictionary
The underlying dictionary; created on first write access.
public PdfDictionary? Dictionary { get; }
Property Value
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
ModificationDate
Modification date (/ModDate); null if missing or not parsable. null removes the entry.
public DateTimeOffset? ModificationDate { get; set; }
Property Value
Producer
Application that produced the PDF (/Producer); null removes the entry.
public string? Producer { get; set; }
Property Value
Subject
Subject (/Subject); null removes the entry.
public string? Subject { get; set; }
Property Value
Title
Document title (/Title); null removes the entry.
public string? Title { get; set; }
Property Value
Methods
Get(PdfName)
Reads a custom entry.
public string? Get(PdfName key)
Parameters
keyPdfName
Returns
Remove(PdfName)
Removes an entry.
public void Remove(PdfName key)
Parameters
keyPdfName
Set(PdfName, string?)
Writes a custom entry; null removes it.
public void Set(PdfName key, string? value)