diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-01-11 22:40:59 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-11 22:40:59 +0000 |
commit | 5970a47ac3cb1c0256d73f509ac73fa24aa4be42 (patch) | |
tree | 8053f39360b76d4373813284df5529fd08f5bc3e /public | |
parent | 7c0a92e1761dddaf6ed84e3bea723dc7a40c8685 (diff) | |
download | pdfium-5970a47ac3cb1c0256d73f509ac73fa24aa4be42.tar.xz |
Add FPDFAnnot_SetAP to public API.chromium/3319
Change-Id: I6de3e4e158a8b0276775c0915cbe53417135eec3
Reviewed-on: https://pdfium-review.googlesource.com/22570
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'public')
-rw-r--r-- | public/fpdf_annot.h | 17 |
1 files changed, 17 insertions, 0 deletions
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 @@ -401,6 +401,23 @@ FPDFAnnot_GetStringValue(FPDF_ANNOTATION annot, 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|. // |buffer| is only modified if |buflen| is large enough to hold the whole AP |