X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=pdf2swf%2Fpdf2swf.cc;h=20f93486a819ba3e74534b57282320e833a03d35;hb=eec662ec199f07966d7ce4100f3eb0c2d2dd1516;hp=c784f805206d2b1b4fc9d123215af288d8b1dd73;hpb=6b23c562a5018a878151141624c0b6a6619a9e18;p=swftools.git diff --git a/pdf2swf/pdf2swf.cc b/pdf2swf/pdf2swf.cc index c784f80..20f9348 100644 --- a/pdf2swf/pdf2swf.cc +++ b/pdf2swf/pdf2swf.cc @@ -12,7 +12,7 @@ #include #include #include "../config.h" -#include "args.h" +#include "../lib/args.h" #include "pdfswf.h" #include "t1lib.h" extern "C" { @@ -66,6 +66,16 @@ int args_callback_option(char*name,char*val) { pdfswf_ignoredraworder(); return 0; } + else if (!strcmp(name, "n")) + { + pdfswf_linksopennewwindow(); + return 0; + } + else if (!strcmp(name, "f")) + { + pdfswf_storeallcharacters(); + return 0; + } else if (name[0]=='j') { if(name[1]) { @@ -89,39 +99,20 @@ int args_callback_option(char*name,char*val) { return 0; } -struct options_t -{ - char shortoption; - char*longoption; -} options[] = -{{'o',"output"}, - {'V',"version"}, - {'i',"ignore"}, - {'s',"shapes"}, - {'j',"jpegquality"}, - {'p',"pages"} +struct options_t options[] = +{{"o","output"}, + {"V","version"}, + {"i","ignore"}, + {"s","shapes"}, + {"j","jpegquality"}, + {"p","pages"}, + {"w","samewindow"}, + {"f","fonts"}, + {0,0} }; int args_callback_longoption(char*name,char*val) { - int t; - char*equal = strchr(name,'='); - if (equal) { - *equal = 0; - equal++; - } - for(t=0;t