diff options
author | Jane Liu <janeliulwq@google.com> | 2017-08-16 11:25:35 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-16 17:14:22 +0000 |
commit | ca89829775fec2968b51fe5abad86bad1b6a277b (patch) | |
tree | f276524600e7a4b8fa1cfb526302f330626cd815 /fpdfsdk/fpdfview_c_api_test.c | |
parent | eb14e04c79c575146fe96c025dbf56b7440870c7 (diff) | |
download | pdfium-ca89829775fec2968b51fe5abad86bad1b6a277b.tar.xz |
API and test for retrieving metadata from image objects
Added FPDFImageObj_GetImageMetadata() for retriving the image metadata
of image objects, including its dimension, DPI, bits per pixel, and
colorspace.
* Added a corresponding embedder test.
Bug=pdfium:677
Change-Id: I4229334d1ac2125b21a46e2e44ea937ea2e94b51
Reviewed-on: https://pdfium-review.googlesource.com/10110
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Jane Liu <janeliulwq@google.com>
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 88b7465744..4dd4995cd2 100644 --- a/fpdfsdk/fpdfview_c_api_test.c +++ b/fpdfsdk/fpdfview_c_api_test.c @@ -138,6 +138,7 @@ int CheckPDFiumCApi() { CHK(FPDFImageObj_GetImageDataRaw); CHK(FPDFImageObj_GetImageFilterCount); CHK(FPDFImageObj_GetImageFilter); + CHK(FPDFImageObj_GetImageMetadata); CHK(FPDFPageObj_CreateNewPath); CHK(FPDFPageObj_CreateNewRect); CHK(FPDFPath_SetStrokeColor); |