public class JavaScriptEnabler extends Object implements IJavaScriptEnabler
| Constructor and Description | 
|---|
| JavaScriptEnabler(boolean enable)Construct an instance with a set value for enabling / disabling JavaScript. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | shouldEnableJS(IPDFDocument document)Implementation of the IJavaScriptEnabler contract. | 
public JavaScriptEnabler(boolean enable)
enable - Flag to enable / disable JavaScript.public boolean shouldEnableJS(IPDFDocument document)
shouldEnableJS in interface IJavaScriptEnablerdocument - The PDF document that is being loaded.  An implementation of this class can
 look at the document to see if it should enable or disable JavaScript.