Log message when XFA load fails
A minor change to make it obvious when generated/test XFA files are not
being fully processed.
R=bo_xu@foxitsoftware.com
Review URL: https://codereview.chromium.org/732173003
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 665849d..d01602f 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -291,7 +291,9 @@
(void) FPDFAvail_IsFormAvail(pdf_avail, &hints);
FPDF_FORMHANDLE form = FPDFDOC_InitFormFillEnvironment(doc, &form_callbacks);
- FPDF_LoadXFA(doc);
+ if (!FPDF_LoadXFA(doc)) {
+ printf("LoadXFA unsuccessful, continuing anyway.\n");
+ }
FPDF_SetFormFieldHighlightColor(form, 0, 0xFFE4DD);
FPDF_SetFormFieldHighlightAlpha(form, 100);