FPDFJavaScriptAction_GetName method
int
FPDFJavaScriptAction_GetName(
- FPDF_JAVASCRIPT_ACTION javascript,
- Pointer<
FPDF_WCHAR> buffer, - int buflen
Experimental API. Get the name from the |javascript| handle. |buffer| is only modified if |buflen| is longer than the length of the name. 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_GetName(
FPDF_JAVASCRIPT_ACTION javascript,
ffi.Pointer<FPDF_WCHAR> buffer,
int buflen,
) {
return _FPDFJavaScriptAction_GetName(javascript, buffer, buflen);
}