X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=pdf2swf%2Fpdf2swf.cc;h=dcce5f868c88b9171326010f63326088ced4bca2;hp=782e138cea3bd5c2bbaec74d9f7f64e696668085;hb=8fd13edea1571f100db08fc5c19d08808a6ead1b;hpb=b35ef028cc3f91c3e349aa8c330f52dba3da29b3 diff --git a/pdf2swf/pdf2swf.cc b/pdf2swf/pdf2swf.cc index 782e138..dcce5f8 100644 --- a/pdf2swf/pdf2swf.cc +++ b/pdf2swf/pdf2swf.cc @@ -120,6 +120,14 @@ int args_callback_option(char*name,char*val) { 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(); @@ -237,6 +245,7 @@ struct options_t options[] = {"b","defaultviewer"}, {"l","defaultpreloader"}, {"t","stop"}, + {"T","flashversion"}, {0,0} }; @@ -279,6 +288,7 @@ void args_callback_usage(char*name) 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