org.pdfbox.pdmodel.fdf
Class FDFJavaScript
java.lang.Object
org.pdfbox.pdmodel.fdf.FDFJavaScript
- COSObjectable
public class FDFJavaScript
extends java.lang.Object
This represents an FDF JavaScript dictionary that is part of the FDF document.
FDFJavaScript
public FDFJavaScript()
Default constructor.
FDFJavaScript
public FDFJavaScript(COSDictionary javaScript)
Constructor.
javaScript
- The FDF java script.
getAfter
public PDTextStream getAfter()
This will get the javascript that is executed after the import.
getBefore
public PDTextStream getBefore()
This will get the javascript that is executed before the import.
getCOSDictionary
public COSDictionary getCOSDictionary()
Convert this standard java object to a COS object.
- The cos object that matches this Java object.
getCOSObject
public COSBase getCOSObject()
Convert this standard java object to a COS object.
- getCOSObject in interface COSObjectable
- The cos object that matches this Java object.
getNamedJavaScripts
public List 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.
- A list of all named javascript entries.
setAfter
public void setAfter(PDTextStream after)
This will set the javascript code the will get execute after the import.
after
- A reference to some javascript code.
setBefore
public void setBefore(PDTextStream before)
This will set the javascript code the will get execute before the import.
before
- A reference to some javascript code.
setNamedJavaScripts
public void setNamedJavaScripts(List namedStreams)
This should be a list of PDNamedTextStream objects.
namedStreams
- The named streams.