X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fpdf2swf.cc;h=85c72019a05fa5979e2e1a6e60de4cffb71980fc;hb=98224e6d436b226dc8445db494efa7e8c3635c34;hp=ecbc36617feb8cee0335f5838abc493c244b65e3;hpb=a13c36769b437418458b56b3919b726c932ec8a1;p=swftools.git diff --git a/pdf2swf/pdf2swf.cc b/pdf2swf/pdf2swf.cc index ecbc366..85c7201 100644 --- a/pdf2swf/pdf2swf.cc +++ b/pdf2swf/pdf2swf.cc @@ -115,6 +115,19 @@ int args_callback_option(char*name,char*val) { pdfswf_linksopennewwindow(); return 0; } + else if (!strcmp(name, "t")) + { + pdfswf_insertstop(); + return 0; + } + else if (!strcmp(name, "T")) + { + int i = atoi(val); + if(!strcasecmp(val, "mx")) + i = 6; + pdfswf_setversion(i); + return 1; + } else if (!strcmp(name, "f")) { pdfswf_storeallcharacters(); @@ -175,7 +188,7 @@ int args_callback_option(char*name,char*val) { } return 1; } - else if (name[0]=='j') + else if (!strcmp(name, "j")) { if(name[1]) { pdfswf_jpegquality(atoi(&name[1])); @@ -226,11 +239,13 @@ struct options_t options[] = {"p","pages"}, {"w","samewindow"}, {"f","fonts"}, - {"F","fontpath"}, + {"F","fontdir"}, {"B","viewer"}, {"L","preloader"}, {"b","defaultviewer"}, {"l","defaultpreloader"}, + {"t","stop"}, + {"T","flashversion"}, {0,0} }; @@ -267,11 +282,13 @@ void args_callback_usage(char*name) printf("-v --verbose Be verbose. Use more than one -v for greater effect\n"); printf("-q --quiet Suppress normal messages. Use -qq to suppress warnings, also.\n"); printf("-w --samewindow Don't open a new Browser Window for Links in the SWF\n"); -#ifdef HAVE_DIRENT +#ifdef HAVE_DIRENT_H printf("-F --fontdir directory Add directory to font search path\n"); #endif printf("-f --fonts Store full fonts in SWF. (Don't reduce to used characters)\n"); printf("-V --version Print program version\n"); + printf("-t --stop Insert a \"Stop\" Tag in every frame (don't turn pages automatically)\n"); + printf("-T --flashversion=num Set the flash version in the header to num (default: 4)\n"); #ifndef SYSTEM_BACKTICKS printf("The following might not work because your system call doesn't support command substitution:\n"); #endif