PdfDocumentInformation Class
The document information dictionary (ISO 32000-2, 14.3.3), the /Info entry of the trailer. Setting a value creates the dictionary; setting null removes the entry.
public sealed class PdfDocumentInformationRemarks
PDF 2.0 deprecates every entry but the dates in favor of the XMP metadata: PdfDocument.UpdateXmpMetadata writes these values to it.
Properties
| Name | Description |
|---|---|
| Author | Gets or sets the name of the person who created the document. |
| CreationDate | Gets or sets the date the document was created, or null when it is missing or not a valid date. |
| Creator | Gets or sets the name of the application that created the original document. |
| Dictionary | Gets the information dictionary, or null when the document has none. |
| Keywords | Gets or sets the keywords of the document. |
| ModificationDate | Gets or sets the date the document was last modified, or null when it is missing or not a valid date. |
| Producer | Gets or sets the name of the application that converted the document to PDF. |
| Subject | Gets or sets the subject of the document. |
| Title | Gets or sets the title of the document. |
| Trapped | Gets or sets whether the document includes the trapping information of prepress workflows (the /Trapped entry), or null when the entry is missing or not valid. The XMP metadata has it as pdf:Trapped. |
CreationDate
PdfDocumentInformation.csGets or sets the date the document was created, or null when it is missing or not a valid date.
public DateTimeOffset? CreationDate { get; set; }Property value
Creator
PdfDocumentInformation.csDictionary
PdfDocumentInformation.csGets the information dictionary, or null when the document has none.
public PdfDictionary? Dictionary { get; }Property value
Keywords
PdfDocumentInformation.csModificationDate
PdfDocumentInformation.csGets or sets the date the document was last modified, or null when it is missing or not a valid date.
public DateTimeOffset? ModificationDate { get; set; }Property value
Producer
PdfDocumentInformation.csSubject
PdfDocumentInformation.csTrapped
PdfDocumentInformation.csGets or sets whether the document includes the trapping information of prepress workflows (the /Trapped entry), or null when the entry is missing or not valid. The XMP metadata has it as pdf:Trapped.
public PdfTrapped? Trapped { get; set; }Methods
| Name | Description |
|---|---|
| GetText(string) | Gets the value of an entry as a text, such as a custom entry. |
| SetText(string, string?) | Sets the value of an entry to a text, or removes it. |