summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2015-10-29 09:26:51 -0400
committerDan Sinclair <dsinclair@chromium.org>2015-10-29 09:26:51 -0400
commitd3fca8027a571369661fa1f2db4385befedd6518 (patch)
treed1dba144b458cf2e5522d698b49a02cc82c13fc8 /samples
parent806af3a576ac4ce4d1979a225dcb49ae385000d3 (diff)
downloadpdfium-d3fca8027a571369661fa1f2db4385befedd6518.tar.xz
Merge to XFA: Remove linearized path print statements
This CL makes the pdfium_test app a little less chatty by removing the print statements around linearized paths. TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1415333007 . (cherry picked from commit 0bbb2d855b938c7dda3dd56baf7131b1861ae850) Review URL: https://codereview.chromium.org/1415373003 .
Diffstat (limited to 'samples')
-rw-r--r--samples/pdfium_test.cc7
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();