Package org.apache.pdfbox.pdmodel.fdf
Class FDFJavaScript
java.lang.Object
org.apache.pdfbox.pdmodel.fdf.FDFJavaScript
- All Implemented Interfaces:
COSObjectable
This represents an FDF JavaScript dictionary that is part of the FDF document.
- Author:
- Ben Litchfield
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAfter()
This will get the javascript that is executed after the import.This will get the javascript that is executed before the import.Convert this standard java object to a COS object.getDoc()
Returns the dictionary's "Doc" entry, that is, a map of key value pairs to be added to the document's JavaScript name tree.void
This will set the javascript code the will get execute after the import.void
This will set the javascript code the will get execute before the import.void
setDoc
(Map<String, PDActionJavaScript> map) Sets the dictionary's "Doc" entry.
-
Constructor Details
-
FDFJavaScript
public FDFJavaScript()Default constructor. -
FDFJavaScript
Constructor.- Parameters:
javaScript
- The FDF java script.
-
-
Method Details
-
getCOSObject
Convert this standard java object to a COS object.- Specified by:
getCOSObject
in interfaceCOSObjectable
- Returns:
- The cos object that matches this Java object.
-
getBefore
This will get the javascript that is executed before the import.- Returns:
- Some javascript code.
-
setBefore
This will set the javascript code the will get execute before the import.- Parameters:
before
- A reference to some javascript code.
-
getAfter
This will get the javascript that is executed after the import.- Returns:
- Some javascript code.
-
setAfter
This will set the javascript code the will get execute after the import.- Parameters:
after
- A reference to some javascript code.
-
getDoc
Returns the dictionary's "Doc" entry, that is, a map of key value pairs to be added to the document's JavaScript name tree.- Returns:
- Map of named "JavaScript" dictionaries.
-
setDoc
Sets the dictionary's "Doc" entry.- Parameters:
map
- Map of named "JavaScript" dictionaries.
-