diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-04-04 10:48:19 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-04 15:00:53 +0000 |
commit | 29479f6380942515b06240c4933bf3b4cf502013 (patch) | |
tree | 17c63412945c264cf3087a2f959d157f2ad1b19b /fpdfsdk/fpdfview_c_api_test.c | |
parent | f02c8bf51c992057376e0acdd262c18540bd8e13 (diff) | |
download | pdfium-29479f6380942515b06240c4933bf3b4cf502013.tar.xz |
Add method to get tagged type
This CL adds a FPDF_StructElement_GetType method to get the type of a given
tagged struct. This corresponds to the /S key in the structure element
dictionary. See PDF1.7 Table 10.10.
Bug: pdfium:672
Change-Id: I313eb886dc9623715995d73a76bce01ba9985e4b
Reviewed-on: https://pdfium-review.googlesource.com/3623
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfview_c_api_test.c')
-rw-r--r-- | fpdfsdk/fpdfview_c_api_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfview_c_api_test.c b/fpdfsdk/fpdfview_c_api_test.c index fec91efeca..9afbdd479e 100644 --- a/fpdfsdk/fpdfview_c_api_test.c +++ b/fpdfsdk/fpdfview_c_api_test.c @@ -178,6 +178,7 @@ int CheckPDFiumCApi() { CHK(FPDF_StructTree_CountChildren); CHK(FPDF_StructTree_GetChildAtIndex); CHK(FPDF_StructElement_GetAltText); + CHK(FPDF_StructElement_GetType); CHK(FPDF_StructElement_CountChildren); CHK(FPDF_StructElement_GetChildAtIndex); |