DocumentInfo

Overview

DocumentInfo is a class in Aspose.PDF FOSS for .NET.

Represents the document information dictionary.

This class declares 9 methods for DocumentInfo objects in .NET programs. Available methods include: Add, Clear, ClearCustomData, ContainsKey, DocumentInfo, GetCustom, IsPredefinedKey, Remove, SetCustom. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Author, Count, CreationDate, CreationTimeZone, Creator, IsDirty, and 8 more.

Properties

NameTypeAccessDescription
IsDirtyboolReadWhether any property has been modified since the last save/load.
CountintReadNumber of metadata entries in the underlying /Info dictionary.
KeysIEnumerable<string>ReadAll metadata entry keys.
Titlestring?Read/WriteGets or sets the document title (the /Title entry).
Authorstring?Read/WriteGets or sets the name of the person who created the document (the /Author entry).
Subjectstring?Read/WriteGets or sets the document subject (the /Subject entry).
Keywordsstring?Read/WriteGets or sets the keywords associated with the document (the /Keywords entry).
Creatorstring?Read/WriteGets or sets the name of the application that created the original content (the /Creator entry).
Producerstring?Read/WriteGets or sets the name of the application that produced the PDF (the /Producer entry).
Trappedstring?Read/WriteGets or sets the trapped.
CreationDateDateTimeRead/WriteGets or sets the date the document was created (the /CreationDate entry).
ModDateDateTimeRead/WriteGets or sets the date the document was last modified (the /ModDate entry).
CreationTimeZoneTimeSpanRead/WriteTimezone offset stored on the CreationDate metadata, or Zero if absent.
ModTimeZoneTimeSpanRead/WriteTimezone offset stored on the ModDate metadata, or Zero if absent.

Methods

SignatureDescription
DocumentInfo(document: Document)Creates a DocumentInfo instance for the given document.
IsPredefinedKey(key: string)Whether the given key is one of the well-known PDF document information dictionary entries defined by PDF 32000-2 § 14.3.3 — Title, Author, Subject, Keywords, Creator, Producer, CreationDate, ModDate, Trapped.
Clear()Remove every entry from the /Info dictionary.
ClearCustomData()Remove every non-predefined (custom) entry.
Remove(key: string)Remove the entry at key.
SetCustom(key: string, value: string)Set a custom metadata property.
Add(key: string, value: string)Adds a custom metadata property.
ContainsKey(key: string)Whether the underlying /Info dictionary has an entry for the given key.
GetCustom(key: string)Get a custom metadata property.

See Also

 English