JavaScriptCollection

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).

This class provides 5 methods for working with JavaScriptCollection objects in Java programs. Available methods include: JavaScriptCollection, get, getKeys, iterator, size. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: keys.

Properties

NameTypeAccessDescription
keysSet<String>ReadReturns the set of JavaScript action names.

Methods

SignatureDescription
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)StringReturns the JavaScript source code associated with the given name.
size()intReturns the number of JavaScript entries.
iterator()Iterator<Map.Entry<String, String>>Returns an iterator over the name-to-script entries.

See Also

 English