OLD | NEW |
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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 } | 327 } |
328 options->font_directory = cur_arg.substr(11); | 328 options->font_directory = cur_arg.substr(11); |
329 } | 329 } |
330 #ifdef _WIN32 | 330 #ifdef _WIN32 |
331 else if (cur_arg == "--emf") { | 331 else if (cur_arg == "--emf") { |
332 if (options->output_format != OUTPUT_NONE) { | 332 if (options->output_format != OUTPUT_NONE) { |
333 fprintf(stderr, "Duplicate or conflicting --emf argument\n"); | 333 fprintf(stderr, "Duplicate or conflicting --emf argument\n"); |
334 return false; | 334 return false; |
335 } | 335 } |
336 options->output_format = OUTPUT_EMF; | 336 options->output_format = OUTPUT_EMF; |
337 } | 337 } else if (cur_arg == "--bmp") { |
338 else if (cur_arg == "--bmp") { | |
339 if (options->output_format != OUTPUT_NONE) { | 338 if (options->output_format != OUTPUT_NONE) { |
340 fprintf(stderr, "Duplicate or conflicting --bmp argument\n"); | 339 fprintf(stderr, "Duplicate or conflicting --bmp argument\n"); |
341 return false; | 340 return false; |
342 } | 341 } |
343 options->output_format = OUTPUT_BMP; | 342 options->output_format = OUTPUT_BMP; |
344 } | 343 } |
345 #endif // _WIN32 | 344 #endif // _WIN32 |
346 #ifdef PDF_ENABLE_V8 | 345 #ifdef PDF_ENABLE_V8 |
347 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 346 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
348 else if (cur_arg.size() > 10 && cur_arg.compare(0, 10, "--bin-dir=") == 0) { | 347 else if (cur_arg.size() > 10 && cur_arg.compare(0, 10, "--bin-dir=") == 0) { |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 } | 698 } |
700 | 699 |
701 FPDF_DestroyLibrary(); | 700 FPDF_DestroyLibrary(); |
702 #ifdef PDF_ENABLE_V8 | 701 #ifdef PDF_ENABLE_V8 |
703 v8::V8::ShutdownPlatform(); | 702 v8::V8::ShutdownPlatform(); |
704 delete platform; | 703 delete platform; |
705 #endif // PDF_ENABLE_V8 | 704 #endif // PDF_ENABLE_V8 |
706 | 705 |
707 return 0; | 706 return 0; |
708 } | 707 } |
OLD | NEW |