summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2014-12-05 13:30:51 -0800
committerTom Sepez <tsepez@chromium.org>2014-12-05 13:30:51 -0800
commit5645138a00db8b494e48eb214b95d15e620e1771 (patch)
tree9a04077103fe9fc8aa1d3cf7bf836cba81e630f6 /samples
parentdf448f5c421440c8884c87da6055c0b5cc62c5ca (diff)
downloadpdfium-5645138a00db8b494e48eb214b95d15e620e1771.tar.xz
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
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);