diff options
author | Jane Liu <janeliulwq@google.com> | 2017-07-06 11:13:35 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-06 15:45:04 +0000 |
commit | 3656774aa2b654f3c26c188c45a1d284962e9c43 (patch) | |
tree | 4fd866138291c80ef06089da729c0b9eda1b7df0 /fpdfsdk/fpdfview_c_api_test.c | |
parent | 75e1ab05e731d99b9acdc86de47640720e848415 (diff) | |
download | pdfium-3656774aa2b654f3c26c188c45a1d284962e9c43.tar.xz |
Generalized annotation APIs to support image and text objects
Generalized the following annotation APIs to support working with image
and text objects:
FPDFAnnot_AppendPathObject() -> FPDFAnnot_AppendObject()
FPDFAnnot_UpdatePathObject() -> FPDFAnnot_UpdateObject()
FPDFAnnot_GetPathObjectCount() -> FPDFAnnot_GetObjectCount()
FPDFAnnot_GetPathObject() -> FPDFAnnot_GetObject()
Also added two embeddertests to test appending, retrieving, editting,
and updating image and text objects in annotations.
Bug=pdfium:737
Change-Id: If3ea5846d5abec7dc195291bb1a0ef4b17f0d604
Reviewed-on: https://pdfium-review.googlesource.com/7210
Commit-Queue: Jane Liu <janeliulwq@google.com>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfview_c_api_test.c')
-rw-r--r-- | fpdfsdk/fpdfview_c_api_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/fpdfview_c_api_test.c b/fpdfsdk/fpdfview_c_api_test.c index 01c318912f..0027aa4b52 100644 --- a/fpdfsdk/fpdfview_c_api_test.c +++ b/fpdfsdk/fpdfview_c_api_test.c @@ -42,10 +42,10 @@ int CheckPDFiumCApi() { CHK(FPDFPage_CloseAnnot); CHK(FPDFPage_RemoveAnnot); CHK(FPDFAnnot_GetSubtype); - CHK(FPDFAnnot_UpdatePathObject); - CHK(FPDFAnnot_AppendPathObject); - CHK(FPDFAnnot_GetPathObjectCount); - CHK(FPDFAnnot_GetPathObject); + CHK(FPDFAnnot_UpdateObject); + CHK(FPDFAnnot_AppendObject); + CHK(FPDFAnnot_GetObjectCount); + CHK(FPDFAnnot_GetObject); CHK(FPDFAnnot_SetColor); CHK(FPDFAnnot_GetColor); CHK(FPDFAnnot_HasAttachmentPoints); |