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
| Name | Type | Access | Description |
|---|---|---|---|
IsDirty | bool | Read | Whether any property has been modified since the last save/load. |
Count | int | Read | Number of metadata entries in the underlying /Info dictionary. |
Keys | IEnumerable<string> | Read | All metadata entry keys. |
Title | string? | Read/Write | Gets or sets the title. |
Author | string? | Read/Write | Gets or sets the author. |
Subject | string? | Read/Write | Gets or sets the subject. |
Keywords | string? | Read/Write | Gets or sets the keywords. |
Creator | string? | Read/Write | Gets or sets the creator. |
Producer | string? | Read/Write | Gets or sets the producer. |
Trapped | string? | Read/Write | Gets or sets the trapped. |
CreationDate | DateTime | Read/Write | Gets or sets the creation date. |
ModDate | DateTime | Read/Write | Gets or sets the mod date. |
CreationTimeZone | TimeSpan | Read/Write | Timezone offset stored on the CreationDate metadata, or Zero if absent. |
ModTimeZone | TimeSpan | Read/Write | Timezone offset stored on the ModDate metadata, or Zero if absent. |
méthodes
| Signature | Description |
|---|---|
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