FPDFJavaScriptAction_GetScript method
int
FPDFJavaScriptAction_GetScript(
- FPDF_JAVASCRIPT_ACTION javascript,
- Pointer<
FPDF_WCHAR> buffer, - int buflen
Experimental API. Get the script from the |javascript| handle. |buffer| is only modified if |buflen| is longer than the length of the script. On errors, |buffer| is unmodified and the returned length is 0.
javascript - handle to an JavaScript action. buffer - buffer for holding the name, encoded in UTF-16LE. buflen - length of the buffer in bytes.
Returns the length of the JavaScript action name in bytes.
Implementation
int FPDFJavaScriptAction_GetScript(
FPDF_JAVASCRIPT_ACTION javascript,
ffi.Pointer<FPDF_WCHAR> buffer,
int buflen,
) {
return _FPDFJavaScriptAction_GetScript(javascript, buffer, buflen);
}