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

Properties

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

Methods

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