FPDFDoc_GetJavaScriptAction method

FPDF_JAVASCRIPT_ACTION FPDFDoc_GetJavaScriptAction(
  1. FPDF_DOCUMENT document,
  2. int index
)

Experimental API. Get the JavaScript action at |index| in |document|.

document - handle to a document. index - the index of the requested JavaScript action.

Returns the handle to the JavaScript action, or NULL on failure. Caller owns the returned handle and must close it with FPDFDoc_CloseJavaScriptAction().

Implementation

FPDF_JAVASCRIPT_ACTION FPDFDoc_GetJavaScriptAction(
  FPDF_DOCUMENT document,
  int index,
) {
  return _FPDFDoc_GetJavaScriptAction(document, index);
}