From 5970a47ac3cb1c0256d73f509ac73fa24aa4be42 Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Thu, 11 Jan 2018 22:40:59 +0000 Subject: Add FPDFAnnot_SetAP to public API. Change-Id: I6de3e4e158a8b0276775c0915cbe53417135eec3 Reviewed-on: https://pdfium-review.googlesource.com/22570 Reviewed-by: Lei Zhang Commit-Queue: Henrique Nakashima --- public/fpdf_annot.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'public/fpdf_annot.h') diff --git a/public/fpdf_annot.h b/public/fpdf_annot.h index 8841963183..d5ef54cf3b 100644 --- a/public/fpdf_annot.h +++ b/public/fpdf_annot.h @@ -400,6 +400,23 @@ FPDFAnnot_GetStringValue(FPDF_ANNOTATION annot, void* buffer, unsigned long buflen); +// 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 UTF16-LE. 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. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFAnnot_SetAP(FPDF_ANNOTATION annot, + FPDF_ANNOT_APPEARANCEMODE appearanceMode, + FPDF_WIDESTRING value); + // Experimental API. // Get the AP (appearance string) from |annot|'s dictionary for a given // |appearanceMode|. -- cgit v1.2.3