Lines Matching refs:Options
44 struct Options {
45 Options() : output_format(OUTPUT_NONE) { }
253 Options* options, std::list<std::string>* files) {
257 options->exe_path = args[0];
262 if (options->output_format != OUTPUT_NONE) {
266 options->output_format = OUTPUT_PPM;
268 if (options->output_format != OUTPUT_NONE) {
272 options->output_format = OUTPUT_PNG;
275 if (!options->font_directory.empty()) {
279 options->font_directory = cur_arg.substr(11);
283 if (options->output_format != OUTPUT_NONE) {
287 options->output_format = OUTPUT_EMF;
290 if (options->output_format != OUTPUT_NONE) {
294 options->output_format = OUTPUT_BMP;
300 if (!options->bin_directory.empty()) {
304 options->bin_directory = cur_arg.substr(10);
309 if (!options->scale_factor_as_string.empty()) {
313 options->scale_factor_as_string = cur_arg.substr(8);
339 const Options& options) {
349 if (!options.scale_factor_as_string.empty()) {
350 std::stringstream(options.scale_factor_as_string) >> scale;
369 switch (options.output_format) {
400 const Options& options) {
530 if (RenderPage(name, doc, form, i, options)) {
570 Options options;
572 if (!ParseCommandLine(args, &options, &files)) {
582 InitializeV8ForPDFium(options.exe_path, options.bin_directory, &natives,
596 if (!options.font_directory.empty()) {
597 path_array[0] = options.font_directory.c_str();
617 RenderPdf(filename, file_contents.get(), file_length, options);