From 7e0c05d7a3329fd0a262d13b8aea74eaf33ba997 Mon Sep 17 00:00:00 2001 From: Diana Gage Date: Wed, 19 Jul 2017 17:33:33 -0700 Subject: Add FPDFAnnot_GetFormFieldFlags() and associated embedder tests. Given an interactive form annotation, this method returns its annotation flags. The flags returned are dependent upon the "Ff" field, and are specific to interactive form annotations, such as FPDF_FORMFLAG_MULTILINE, FPDF_FORMFLAG_COMBO, FPDF_FORMFLAG_EDIT, and others. To test this method more thoroughly, text_form_multiple.pdf has been added, which is similar to text_form.pdf, but includes a read-only text field. BUG=chromium:59266 Change-Id: Ie66046de273f69a1be6f04a433351ebaa271f60c Reviewed-on: https://pdfium-review.googlesource.com/7851 Commit-Queue: Diana Gage Reviewed-by: Lei Zhang Reviewed-by: dsinclair --- fpdfsdk/fpdfview_c_api_test.c | 1 + 1 file changed, 1 insertion(+) (limited to 'fpdfsdk/fpdfview_c_api_test.c') diff --git a/fpdfsdk/fpdfview_c_api_test.c b/fpdfsdk/fpdfview_c_api_test.c index 6753e66c52..1405b40ce8 100644 --- a/fpdfsdk/fpdfview_c_api_test.c +++ b/fpdfsdk/fpdfview_c_api_test.c @@ -61,6 +61,7 @@ int CheckPDFiumCApi() { CHK(FPDFAnnot_GetStringValue); CHK(FPDFAnnot_GetFlags); CHK(FPDFAnnot_SetFlags); + CHK(FPDFAnnot_GetFormFieldFlags); // fpdf_attachment.h CHK(FPDFDoc_GetAttachmentCount); -- cgit v1.2.3