public class JavaScriptEnabler extends Object implements IJavaScriptEnabler
Constructor and Description |
---|
JavaScriptEnabler(boolean enable)
Construct an instance with a set value for enabling / disabling JavaScript.
|
public JavaScriptEnabler(boolean enable)
enable
- Flag to enable / disable JavaScript.public boolean shouldEnableJS(IPDFDocument document)
shouldEnableJS
in interface IJavaScriptEnabler
document
- 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.