diff options
author | Jane Liu <janeliulwq@google.com> | 2017-07-11 13:47:37 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-11 18:09:41 +0000 |
commit | 7a9a38bd1c41f0f909534e56789a22d57b1a2663 (patch) | |
tree | 15c8cc22d5988dcf89f1bbafe7959001311a1449 /public | |
parent | a8fbdc45210856e3130977c188b0efd468031e2a (diff) | |
download | pdfium-7a9a38bd1c41f0f909534e56789a22d57b1a2663.tar.xz |
Added API for removing objects from annotations
Bug=pdfium:737
Change-Id: Ia485219b9288b9fe7e1ae226035b37dde2bc3abd
Reviewed-on: https://pdfium-review.googlesource.com/7213
Commit-Queue: Jane Liu <janeliulwq@google.com>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'public')
-rw-r--r-- | public/fpdf_annot.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/public/fpdf_annot.h b/public/fpdf_annot.h index 31779a5cd8..c42b7059dc 100644 --- a/public/fpdf_annot.h +++ b/public/fpdf_annot.h @@ -142,6 +142,17 @@ DLLEXPORT FPDF_ANNOTATION_SUBTYPE STDCALL FPDFAnnot_GetSubtype(FPDF_ANNOTATION annot); // Experimental API. +// Check if an annotation subtype is currently supported for object extraction, +// update, and removal. +// Currently supported subtypes: ink and stamp. +// +// subtype - the subtype to be checked. +// +// Returns true if this subtype supported. +DLLEXPORT FPDF_BOOL STDCALL +FPDFAnnot_IsObjectSupportedSubtype(FPDF_ANNOTATION_SUBTYPE subtype); + +// Experimental API. // Update |obj| in |annot|. |obj| must be in |annot| already and must have // been retrieved by FPDFAnnot_GetObject(). Currently, only ink and stamp // annotations are supported by this API. Also note that only path, image, and @@ -189,6 +200,16 @@ DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFAnnot_GetObject(FPDF_ANNOTATION annot, int index); // Experimental API. +// Remove the object in |annot| at |index|. +// +// annot - handle to an annotation. +// index - the index of the object to be removed. +// +// Return true if successful. +DLLEXPORT FPDF_BOOL STDCALL FPDFAnnot_RemoveObject(FPDF_ANNOTATION annot, + int index); + +// Experimental API. // Set the color of an annotation. Fails when called on annotations with // appearance streams already defined; instead use // FPDFPath_Set{Stroke|Fill}Color(). |