maybe something like this:
--- pdf2swf.c 2013-11-15 03:03:12.741410872 -0500
+++ pdf2swf_new.c 2013-11-15 03:04:18.679406655 -0500
@@ -710,13 +710,17 @@
show_info(driver, filename);
return 0;
}
-
char*u = 0;
- if((u = strchr(outputname, '%'))) {
+ if((u = strchr(outputname, '%'))){
+ char*t = 0;
+ if((t = strchr(outputname, '/'))){
+ string outputnametemp = outputname.Split('/').Last();
+ outputname =
outputnametemp.Split("\/".ToCharArray()).Last();
+ }
if(strchr(u+1, '%') ||
- strchr(outputname, '%')!=u) {
- msg("<error> only one %% allowed in filename\n");
- return 1;
+ strchr(outputnametemp, '%')!=u){
+ msg("<error> only one %% allowed in filename\n");
+ return 1;
}
if(preloader || viewer) {
msg("<error> -b/-l/-B/-L not supported together with %% in
filename\n");
---------------
SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an
existing subscription, please kindly point your favourite web browser
at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>