FPDFAnnot_SetAP method

int FPDFAnnot_SetAP(
  1. FPDF_ANNOTATION annot,
  2. int appearanceMode,
  3. 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

int FPDFAnnot_SetAP(
  FPDF_ANNOTATION annot,
  int appearanceMode,
  FPDF_WIDESTRING value,
) {
  return _FPDFAnnot_SetAP(annot, appearanceMode, value);
}