summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/pdfium_test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 665849da43..d01602fc85 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -291,7 +291,9 @@ void RenderPdf(const char* name, const char* pBuf, size_t len,
(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);