DocumentInfo

Vue de l’ensemble

‘DocumentInfo’ est une classe dans Aspose.PDF FOSS pour .NET.

Il représente le dictionnaire de l’information.

Cette classe fournit 9 méthodes pour travailler avec les objets DocumentInfo dans des programmes .NET. Les méthodologies disponibles comprennent: ‘Add’, ‘Clear’ , ‘CreationData’, ContainsKey', ‘DocumentInFO', ’GetCustom’, 'IsPredefinedKee', ‚Remove, ‘SetC Custom’. Tous les membres publics sont accessibles à n’importe quelle application .Net après avoir installé l’Aspose.PDF FOSS pour le package .net. Propriétés : ‘Autre’, ‘‘Count,CreationsDate',creationTimeZone` et plus de 8.

Propriétés

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 title.
Authorstring?Read/WriteGets or sets the author.
Subjectstring?Read/WriteGets or sets the subject.
Keywordsstring?Read/WriteGets or sets the keywords.
Creatorstring?Read/WriteGets or sets the creator.
Producerstring?Read/WriteGets or sets the producer.
Trappedstring?Read/WriteGets or sets the trapped.
CreationDateDateTimeRead/WriteGets or sets the creation date.
ModDateDateTimeRead/WriteGets or sets the mod date.
CreationTimeZoneTimeSpanRead/WriteTimezone offset stored on the CreationDate metadata, or Zero if absent.
ModTimeZoneTimeSpanRead/WriteTimezone offset stored on the ModDate metadata, or Zero if absent.

méthodes

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.

Voir aussi

  • Aspose.PDF pour .NET — API d’entreprise
 Français