From: kramm Date: Mon, 22 Oct 2001 15:42:09 +0000 (+0000) Subject: added more command-line options X-Git-Tag: release-0-0-2~33 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=6b23c562a5018a878151141624c0b6a6619a9e18 added more command-line options --- diff --git a/pdf2swf/pdf2swf.cc b/pdf2swf/pdf2swf.cc index d031085..c784f80 100644 --- a/pdf2swf/pdf2swf.cc +++ b/pdf2swf/pdf2swf.cc @@ -56,6 +56,26 @@ int args_callback_option(char*name,char*val) { password = val; return 1; } + else if (!strcmp(name, "s")) + { + pdfswf_drawonlyshapes(); + return 0; + } + else if (!strcmp(name, "i")) + { + pdfswf_ignoredraworder(); + return 0; + } + else if (name[0]=='j') + { + if(name[1]) { + pdfswf_jpegquality(atoi(&name[1])); + return 0; + } else { + pdfswf_jpegquality(atoi(val)); + return 1; + } + } else if (!strcmp(name, "V")) { printf("pdf2swf - part of %s %s\n", PACKAGE, VERSION); @@ -76,6 +96,9 @@ struct options_t } options[] = {{'o',"output"}, {'V',"version"}, + {'i',"ignore"}, + {'s',"shapes"}, + {'j',"jpegquality"}, {'p',"pages"} }; @@ -88,7 +111,7 @@ int args_callback_longoption(char*name,char*val) { } for(t=0;t