summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfview_c_api_test.c
diff options
context:
space:
mode:
authorJane Liu <janeliulwq@google.com>2017-08-24 12:31:10 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-28 20:13:02 +0000
commitd1ed1ce582efc877487c749924e21772e73df6a2 (patch)
tree83a13bf3423fd16de1b7c29d7004bbfac476c103 /fpdfsdk/fpdfview_c_api_test.c
parent827f6ff220edea40252e52d128662d37a591fdb9 (diff)
downloadpdfium-d1ed1ce582efc877487c749924e21772e73df6a2.tar.xz
Added FPDFAnnot_GetAnnotIndex()
Added FPDFAnnot_GetAnnotIndex() to get the index of an annotation. This is useful if linked annotations are renedered together - then we need to know which ones in the annotation list we need to skip. Bug=pdfium:863,pdfium:737 Change-Id: I53482a15e0fd9a896b348b64d68e99f9c21da9f9 Reviewed-on: https://pdfium-review.googlesource.com/11970 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfview_c_api_test.c')
-rw-r--r--fpdfsdk/fpdfview_c_api_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfview_c_api_test.c b/fpdfsdk/fpdfview_c_api_test.c
index b42dc160da..5bad9c8e7b 100644
--- a/fpdfsdk/fpdfview_c_api_test.c
+++ b/fpdfsdk/fpdfview_c_api_test.c
@@ -40,6 +40,7 @@ int CheckPDFiumCApi() {
CHK(FPDFPage_CreateAnnot);
CHK(FPDFPage_GetAnnotCount);
CHK(FPDFPage_GetAnnot);
+ CHK(FPDFPage_GetAnnotIndex);
CHK(FPDFPage_CloseAnnot);
CHK(FPDFPage_RemoveAnnot);
CHK(FPDFAnnot_GetSubtype);