summaryrefslogtreecommitdiff
path: root/public/fpdf_annot.h
diff options
context:
space:
mode:
authorJane Liu <janeliulwq@google.com>2017-08-21 14:37:53 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-22 16:43:35 +0000
commit300bb27bf4a9a84fcd3f1348a4c0076d68a305ce (patch)
treeeecf41fa5ac9c130e6643afa5bb3a34b5e638489 /public/fpdf_annot.h
parent878b27de2fa8e5bdc3b910c98846f4b43185d4aa (diff)
downloadpdfium-300bb27bf4a9a84fcd3f1348a4c0076d68a305ce.tar.xz
Added FPDFAnnot_GetLinkedAnnot()
Added FPDFAnnot_GetLinkedAnnot() to retrieve annotations linked to other annotations through a specified key. Bug=pdfium:863,pdfium:737 Change-Id: If81f41178fb4c40f6561bd392215c709722c4000 Reviewed-on: https://pdfium-review.googlesource.com/11491 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Jane Liu <janeliulwq@google.com>
Diffstat (limited to 'public/fpdf_annot.h')
-rw-r--r--public/fpdf_annot.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/public/fpdf_annot.h b/public/fpdf_annot.h
index 6cd06dd9db..6a89ff9384 100644
--- a/public/fpdf_annot.h
+++ b/public/fpdf_annot.h
@@ -385,6 +385,19 @@ FPDFAnnot_GetStringValue(FPDF_ANNOTATION annot,
unsigned long buflen);
// Experimental API.
+// Get the annotation corresponding to |key| in |annot|'s dictionary. Common
+// keys for linking annotations include "IRT" and "Popup". Must call
+// FPDFPage_CloseAnnot() when the annotation returned by this function is no
+// longer needed.
+//
+// annot - handle to an annotation.
+// key - the key to the requested dictionary entry.
+//
+// Returns a handle to the linked annotation object, or NULL on failure.
+FPDF_EXPORT FPDF_ANNOTATION FPDF_CALLCONV
+FPDFAnnot_GetLinkedAnnot(FPDF_ANNOTATION annot, FPDF_WIDESTRING key);
+
+// Experimental API.
// Get the annotation flags of |annot|.
//
// annot - handle to an annotation.