Table of Contents

Class DocumentMetadata

Namespace
PdfEngine.Documents
Assembly
PdfEngine.Abstractions.dll

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

string

CreationDate

The creation date (/CreationDate), or null when the file has none or it cannot be read.

public DateTime? CreationDate { get; init; }

Property Value

DateTime?

Creator

The application that created the original document (/Creator), or an empty string.

public string Creator { get; init; }

Property Value

string

FileName

The file name part of FilePath, or "Untitled.pdf" when there is no path.

public string FileName { get; }

Property Value

string

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

string

FileSizeBytes

The size of the PDF data in bytes.

public long FileSizeBytes { get; init; }

Property Value

long

IsEncrypted

True when the file is encrypted.

public bool IsEncrypted { get; init; }

Property Value

bool

Keywords

The keywords (/Keywords) as one string, or an empty string.

public string Keywords { get; init; }

Property Value

string

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

DateTime?

PageCount

The number of pages.

public int PageCount { get; init; }

Property Value

int

PdfVersion

The PDF version, for example "1.7".

public string PdfVersion { get; init; }

Property Value

string

PermissionsAllowCopying

True when the document permissions allow copying text and graphics (default true).

public bool PermissionsAllowCopying { get; init; }

Property Value

bool

PermissionsAllowModifying

True when the document permissions allow changes to the document (default true).

public bool PermissionsAllowModifying { get; init; }

Property Value

bool

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

bool

Producer

The application that wrote the PDF (/Producer), or an empty string.

public string Producer { get; init; }

Property Value

string

Subject

The subject (/Subject), or an empty string.

public string Subject { get; init; }

Property Value

string

Title

The document title (Info dictionary /Title), or an empty string.

public string Title { get; init; }

Property Value

string