com.qoppa.pdf
Interface IJavaScriptEnabler

All Known Implementing Classes:
JavaScriptEnabler

public interface IJavaScriptEnabler

This interface is used to determine if JavaScript should be enabled for a document.


Method Summary
 boolean shouldEnableJS(IPDFDocument document)
          Returns true if JavaScript should be enabled for the document.
 

Method Detail

shouldEnableJS

boolean shouldEnableJS(IPDFDocument document)
Returns true if JavaScript should be enabled for the document. An implementation of this class can be document independent (return true or false regardless of the document), or it can look at the document that is being loaded to determine whether to enable or disable Javascript.

Parameters:
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.
Returns:
true if Javascript should be enabled for this document.