git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
49a2c32
)
added -w, --samewindow option
author
kramm
<kramm>
Thu, 1 Nov 2001 00:47:00 +0000
(
00:47
+0000)
committer
kramm
<kramm>
Thu, 1 Nov 2001 00:47:00 +0000
(
00:47
+0000)
pdf2swf/pdf2swf.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/pdf2swf.cc
b/pdf2swf/pdf2swf.cc
index
c0dee56
..
41ed77d
100644
(file)
--- a/
pdf2swf/pdf2swf.cc
+++ b/
pdf2swf/pdf2swf.cc
@@
-66,6
+66,11
@@
int args_callback_option(char*name,char*val) {
pdfswf_ignoredraworder();
return 0;
}
pdfswf_ignoredraworder();
return 0;
}
+ else if (!strcmp(name, "n"))
+ {
+ pdfswf_linksopennewwindow();
+ return 0;
+ }
else if (name[0]=='j')
{
if(name[1]) {
else if (name[0]=='j')
{
if(name[1]) {
@@
-96,6
+101,7
@@
struct options_t options[] =
{"s","shapes"},
{"j","jpegquality"},
{"p","pages"},
{"s","shapes"},
{"j","jpegquality"},
{"p","pages"},
+ {"w","samewindow"},
{0,0}
};
{0,0}
};
@@
-128,6
+134,7
@@
void args_callback_usage(char*name)
printf("-i --ignore Ignore draw order (makes the SWF file smaller)\n");
printf("-j --jpegquality=quality Set quality of embedded jpeg pictures (default:85)\n");
printf("-v --verbose Be verbose. Use more than one -v for greater effect\n");
printf("-i --ignore Ignore draw order (makes the SWF file smaller)\n");
printf("-j --jpegquality=quality Set quality of embedded jpeg pictures (default:85)\n");
printf("-v --verbose Be verbose. Use more than one -v for greater effect\n");
+ printf("-w --samewindow Don't open a new Browser Window for Links in the SWF\n");
printf("-V --version Print program version\n");
}
printf("-V --version Print program version\n");
}
@@
-253,6
+260,7
@@
int main(int argn, char *argv[])
if(is_in_range(t, pagerange))
pdfswf_convertpage(t);
}
if(is_in_range(t, pagerange))
pdfswf_convertpage(t);
}
+ pdfswf_performconversion();
pdfswf_close();
return 0;
pdfswf_close();
return 0;