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

Side by Side Diff: samples/pdfium_test.cc

Issue 506053003: Fix compile on mac: format string mismatch error. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 3 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits.h> 5 #include <limits.h>
6 #include <stdio.h> 6 #include <stdio.h>
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 FORM_OnBeforeClosePage(page, form); 352 FORM_OnBeforeClosePage(page, form);
353 FPDFText_ClosePage(text_page); 353 FPDFText_ClosePage(text_page);
354 FPDF_ClosePage(page); 354 FPDF_ClosePage(page);
355 } 355 }
356 356
357 FORM_DoDocumentAAction(form, FPDFDOC_AACTION_WC); 357 FORM_DoDocumentAAction(form, FPDFDOC_AACTION_WC);
358 FPDFDOC_ExitFormFillEnviroument(form); 358 FPDFDOC_ExitFormFillEnviroument(form);
359 FPDF_CloseDocument(doc); 359 FPDF_CloseDocument(doc);
360 FPDFAvail_Destroy(pdf_avail); 360 FPDFAvail_Destroy(pdf_avail);
361 361
362 printf("Loaded, parsed and rendered %d pages.\n", rendered_pages); 362 printf("Loaded, parsed and rendered %zu pages.\n", rendered_pages);
363 printf("Skipped %d bad pages.\n", bad_pages); 363 printf("Skipped %zu bad pages.\n", bad_pages);
364 } 364 }
365 365
366 int main(int argc, const char* argv[]) { 366 int main(int argc, const char* argv[]) {
367 v8::V8::InitializeICU(); 367 v8::V8::InitializeICU();
368 OutputFormat format = OUTPUT_NONE; 368 OutputFormat format = OUTPUT_NONE;
369 std::list<const char*> files; 369 std::list<const char*> files;
370 if (!ParseCommandLine(argc, argv, &format, &files)) { 370 if (!ParseCommandLine(argc, argv, &format, &files)) {
371 printf("Usage: pdfium_test [OPTION] [FILE]...\n"); 371 printf("Usage: pdfium_test [OPTION] [FILE]...\n");
372 printf("--ppm write page images <pdf-name>.<page-number>.ppm\n"); 372 printf("--ppm write page images <pdf-name>.<page-number>.ppm\n");
373 #ifdef _WIN32 373 #ifdef _WIN32
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 } else { 405 } else {
406 RenderPdf(filename, pBuf, len, format); 406 RenderPdf(filename, pBuf, len, format);
407 } 407 }
408 free(pBuf); 408 free(pBuf);
409 } 409 }
410 410
411 FPDF_DestroyLibrary(); 411 FPDF_DestroyLibrary();
412 412
413 return 0; 413 return 0;
414 } 414 }
OLDNEW
« 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