From 300bb27bf4a9a84fcd3f1348a4c0076d68a305ce Mon Sep 17 00:00:00 2001 From: Jane Liu Date: Mon, 21 Aug 2017 14:37:53 -0400 Subject: 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 Commit-Queue: Jane Liu --- public/fpdf_annot.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'public') 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 @@ -384,6 +384,19 @@ FPDFAnnot_GetStringValue(FPDF_ANNOTATION annot, void* buffer, 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|. // -- cgit v1.2.3