FPDFAnnot_SetAP function
- @Native<FPDF_BOOL Function(FPDF_ANNOTATION, FPDF_ANNOT_APPEARANCEMODE, FPDF_WIDESTRING)>(FPDF_ANNOTATION, FPDF_ANNOT_APPEARANCEMODE, FPDF_WIDESTRING)>()
- FPDF_ANNOTATION annot,
- int appearanceMode,
- FPDF_WIDESTRING value
Experimental API. Set the AP (appearance string) in |annot|'s dictionary for a given |appearanceMode|.
annot - handle to an annotation. appearanceMode - the appearance mode (normal, rollover or down) for which to get the AP. value - the string value to be set, encoded in UTF-16LE. If nullptr is passed, the AP is cleared for that mode. If the mode is Normal, APs for all modes are cleared.
Returns true if successful.
Implementation
@ffi.Native<
FPDF_BOOL Function(
FPDF_ANNOTATION,
FPDF_ANNOT_APPEARANCEMODE,
FPDF_WIDESTRING,
)
>()
external int FPDFAnnot_SetAP(
FPDF_ANNOTATION annot,
int appearanceMode,
FPDF_WIDESTRING value,
);