Class DocumentMetadata
Immutable metadata describing a loaded PDF document.
public record DocumentMetadata : IEquatable<DocumentMetadata>
- Inheritance
-
DocumentMetadata
- Implements
- Inherited Members
Properties
Author
The author (/Author), or an empty string.
public string Author { get; init; }
Property Value
CreationDate
The creation date (/CreationDate), or null when the file has none or it cannot be read.
public DateTime? CreationDate { get; init; }
Property Value
Creator
The application that created the original document (/Creator), or an empty string.
public string Creator { get; init; }
Property Value
FileName
The file name part of FilePath, or "Untitled.pdf" when there is no path.
public string FileName { get; }
Property Value
FilePath
The path the document was opened from, or an empty string for a document opened from memory.
public string FilePath { get; init; }
Property Value
FileSizeBytes
The size of the PDF data in bytes.
public long FileSizeBytes { get; init; }
Property Value
IsEncrypted
True when the file is encrypted.
public bool IsEncrypted { get; init; }
Property Value
Keywords
The keywords (/Keywords) as one string, or an empty string.
public string Keywords { get; init; }
Property Value
ModificationDate
The last modification date (/ModDate), or null when the file has none or it cannot be read.
public DateTime? ModificationDate { get; init; }
Property Value
PageCount
The number of pages.
public int PageCount { get; init; }
Property Value
PdfVersion
The PDF version, for example "1.7".
public string PdfVersion { get; init; }
Property Value
PermissionsAllowCopying
True when the document permissions allow copying text and graphics (default true).
public bool PermissionsAllowCopying { get; init; }
Property Value
PermissionsAllowModifying
True when the document permissions allow changes to the document (default true).
public bool PermissionsAllowModifying { get; init; }
Property Value
PermissionsAllowPrinting
True when the document permissions allow printing. An engine that does not read the permissions leaves the default, true.
public bool PermissionsAllowPrinting { get; init; }
Property Value
Producer
The application that wrote the PDF (/Producer), or an empty string.
public string Producer { get; init; }
Property Value
Subject
The subject (/Subject), or an empty string.
public string Subject { get; init; }
Property Value
Title
The document title (Info dictionary /Title), or an empty string.
public string Title { get; init; }