diff options
-rw-r--r-- | samples/pdfium_test.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index f1ea429ccc..76de7ea7a5 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -380,13 +380,10 @@ void RenderPdf(const std::string& name, const char* pBuf, size_t len, (void)FPDFAvail_IsDocAvail(pdf_avail, &hints); - if (FPDFAvail_IsLinearized(pdf_avail)) { - fprintf(stderr, "Linearized path...\n"); + if (FPDFAvail_IsLinearized(pdf_avail)) doc = FPDFAvail_GetDocument(pdf_avail, nullptr); - } else { - fprintf(stderr, "Non-linearized path...\n"); + else doc = FPDF_LoadCustomDocument(&file_access, nullptr); - } if (!doc) { unsigned long err = FPDF_GetLastError(); |