JavaScriptCollection
Vue de l’ensemble
‘JavaScriptCollection’ est une classe dans Aspose.PDF FOSS pour Java. hérite de: ‘Iterable<Map.Entry<String’, ‘Strings»’.
Il fournit un accès à l’arbre de nom JavaScript d’un document PDF (ISO 32000-1:2008, §12.6.4.16 et §7.9.6).
Cette classe fournit 5 méthodes pour travailler avec les objets JavaScriptCollection dans les programmes Java. Les méthodologies disponibles comprennent: ‘JavaScriptColection’, ‘get’, `getKeys’, ‘iterator’, ‘size’. Tous les membres publics sont accessibles à n’importe quelle application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : ‘keys’.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
keys | Set<String> | Read | Returns the set of JavaScript action names. |
méthodes
| Signature | Description |
|---|---|
JavaScriptCollection(catalog: PdfDictionary, parser: PDFParser) | Creates a JavaScriptCollection by reading the /Names → /JavaScript name tree |
| from the document catalog. | |
getKeys() → Set<String> | Returns the set of JavaScript action names. |
get(name: String) → String | Returns the JavaScript source code associated with the given name. |
size() → int | Returns the number of JavaScript entries. |
iterator() → Iterator<Map.Entry<String, String>> | Returns an iterator over the name-to-script entries. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise