Table of Contents

Class PdfMetadata

Namespace
DocToolkit
Assembly
DocToolkit.dll

The document information a PDF carries about itself — what a file manager shows in its properties panel, and what a search indexer reads.

public sealed class PdfMetadata
Inheritance
PdfMetadata
Inherited Members

Remarks

Every property is nullable, and null means absent rather than blank. The distinction matters to anything combining metadata from more than one source: an absent title should be replaced by a fallback, while a deliberately empty one should not.

WithMetadata(byte[], PdfMetadata) applies the same rule in the other direction — a null property leaves whatever the document already had alone, so stamping a title does not silently erase an author.

Properties

Author

Who wrote it.

public string? Author { get; init; }

Property Value

string

Creator

The application that created the original document.

public string? Creator { get; init; }

Property Value

string

Keywords

Comma-separated keywords, by convention rather than by the specification.

public string? Keywords { get; init; }

Property Value

string

Subject

What it is about — a one-line description.

public string? Subject { get; init; }

Property Value

string

Title

The document's title. Not the file name, and often not set at all.

public string? Title { get; init; }

Property Value

string