summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfview_c_api_test.c
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-02-07 14:59:23 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-02-07 20:47:07 +0000
commit55e026b7b6eec17b012c819c4a7d39e63094b5c4 (patch)
tree5dfdf3759f9d13a87dab2bfd354aaa6342728716 /fpdfsdk/fpdfview_c_api_test.c
parent79365f7e3d2d62138e79e4403d4959318776c139 (diff)
downloadpdfium-55e026b7b6eec17b012c819c4a7d39e63094b5c4.tar.xz
Add APIs for path construction and paintingchromium/3006
Added methods to create paths, set their colors, determine whether they will be stroked and/or filled. FPDFPage_InsertObject should be used to add a path to a page. BUG=pdfium:661 Change-Id: I8fd17b33a09c5126e517bfd1a69a893216c160e8 Reviewed-on: https://pdfium-review.googlesource.com/2534 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfview_c_api_test.c')
-rw-r--r--fpdfsdk/fpdfview_c_api_test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfview_c_api_test.c b/fpdfsdk/fpdfview_c_api_test.c
index 98478f0410..8ec3a26d3a 100644
--- a/fpdfsdk/fpdfview_c_api_test.c
+++ b/fpdfsdk/fpdfview_c_api_test.c
@@ -85,6 +85,15 @@ int CheckPDFiumCApi() {
CHK(FPDFImageObj_LoadJpegFile);
CHK(FPDFImageObj_SetMatrix);
CHK(FPDFImageObj_SetBitmap);
+ CHK(FPDFPageObj_CreateNewPath);
+ CHK(FPDFPageObj_CreateNewRect);
+ CHK(FPDFPath_SetStrokeColor);
+ CHK(FPDFPath_SetFillColor);
+ CHK(FPDFPath_MoveTo);
+ CHK(FPDFPath_LineTo);
+ CHK(FPDFPath_BezierTo);
+ CHK(FPDFPath_Close);
+ CHK(FPDFPath_SetDrawMode);
// fpdf_ext.h
CHK(FSDK_SetUnSpObjProcessHandler);