From e10509a3d2a1641984845d579963d574305ea6cc Mon Sep 17 00:00:00 2001 From: Jane Liu Date: Tue, 20 Jun 2017 16:47:41 -0400 Subject: Wrapper class for annotation dictionary + CPDF_Form 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 Commit-Queue: dsinclair --- public/fpdf_annot.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'public') 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. -- cgit v1.2.3