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.
- Version:
- $Revision: 1.4 $
- 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.Convert this standard java object to a COS object.This will return a list of PDNamedTextStream objects.void
setAfter
(PDTextStream after) This will set the javascript code the will get execute after the import.void
setBefore
(PDTextStream before) This will set the javascript code the will get execute before the import.void
setNamedJavaScripts
(List namedStreams) This should be a list of PDNamedTextStream objects.
-
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.
-
getCOSDictionary
Convert this standard java object to a COS object.- 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.
-
getNamedJavaScripts
This will return a list of PDNamedTextStream objects. This is the "Doc" entry of the pdf document. These will be added to the PDF documents javascript name tree. This will not return null.- Returns:
- A list of all named javascript entries.
-
setNamedJavaScripts
This should be a list of PDNamedTextStream objects.- Parameters:
namedStreams
- The named streams.
-