JavaScriptCollection
Overview
JavaScriptCollection is a class in Aspose.Pdf FOSS for Java.
Inherits from: Iterable<Map.Entry<String, String>>.
Provides access to the JavaScript name tree of a PDF document (ISO 32000-1:2008, §12.6.4.16 and §7.9.6).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
keys | Set<String> | Read | Returns the set of JavaScript action names. |
Methods
| Signature | Description |
|---|---|
JavaScriptCollection(catalog: COSDictionary, 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. |