summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorJane Liu <janeliulwq@google.com>2017-06-20 16:47:41 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-06-20 21:04:49 +0000
commite10509a3d2a1641984845d579963d574305ea6cc (patch)
tree4a18e88dfd833279e2bd22590f16a317f4c6e812 /public
parentd5a13afe9265463a497db40d8c66a8a736a86bc2 (diff)
downloadpdfium-chromium/3137.tar.xz
Wrapper class for annotation dictionary + CPDF_Formchromium/3137
Simple wrapper class for annotation + its path parsing form object. This will be used in APIs for extracting and setting annotation paths. Bug=pdfium:737 Change-Id: I2e8131672d087613213735295c6d01e377b956e7 Reviewed-on: https://pdfium-review.googlesource.com/6730 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'public')
-rw-r--r--public/fpdf_annot.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/fpdf_annot.h b/public/fpdf_annot.h
index adfddec566..bd18898695 100644
--- a/public/fpdf_annot.h
+++ b/public/fpdf_annot.h
@@ -97,6 +97,13 @@ DLLEXPORT FPDF_BOOL STDCALL FPDFPage_GetAnnot(FPDF_PAGE page,
int index,
FPDF_ANNOTATION* annot);
+// Close an annotation. Must be called when the annotation returned by
+// FPDFPage_CreateAnnot() or FPDFPage_GetAnnot() is no longer needed. This
+// function does not remove the annotation from the document.
+//
+// annot - handle to an annotation.
+DLLEXPORT void STDCALL FPDFPage_CloseAnnot(FPDF_ANNOTATION annot);
+
// Get the subtype of an annotation.
//
// annot - handle to an annotation.