Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Unified Diff: samples/pdfium_test.cc

Issue 732173003: Log message when XFA load fails (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/pdfium_test.cc
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 665849da432f75dfb2ee862b002539fa78a956cf..d01602fc8547398b6f54ab842a816a3351d79b19 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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698