Class DocumentInfo
Document-level metadata written to the PDF /Info dictionary in the trailer. Obtain via Info.
Inherited Members
Namespace: DRIT.Pdf.IO
Assembly: DRIT.Pdf.dll
Syntax
public sealed class DocumentInfo
Properties
Author
The document author.
Declaration
public string? Author { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CreationDate
Document creation timestamp.
Serialized as /CreationDate.
Declaration
public DateTime? CreationDate { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
Creator
Name of the application that created the original document content.
(Distinct from Producer, which identifies the PDF library.)
Declaration
public string? Creator { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CustomProperties
Custom key-value entries written into the trailer Info dictionary.
Declaration
public IDictionary<string, string> CustomProperties { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, string> |
Keywords
Keywords associated with the document (space- or comma-separated).
Declaration
public string? Keywords { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ModificationDate
Document modification timestamp.
Serialized as /ModDate.
Declaration
public DateTime? ModificationDate { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
Producer
Name of the PDF producer library or tool chain.
Serialized as /Producer.
Declaration
public string? Producer { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Subject
The document subject.
Declaration
public string? Subject { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Title
The document title.
Declaration
public string? Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
SetCustomProperty(string, string)
Sets or replaces a custom info dictionary entry.
Declaration
public void SetCustomProperty(string name, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| string | value |
TryGetCustomProperty(string, out string?)
Tries to read a custom info dictionary entry.
Declaration
public bool TryGetCustomProperty(string name, out string? value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| string | value |
Returns
| Type | Description |
|---|---|
| bool |