From: kramm Date: Wed, 19 Mar 2008 21:50:48 +0000 (+0000) Subject: added -Q option X-Git-Tag: buttons-working~373 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=84ed8b7b39dc177b4060e1a341e1d8c6a727801b added -Q option --- diff --git a/src/pdf2swf.c b/src/pdf2swf.c index c4df439..3b5c8b4 100644 --- a/src/pdf2swf.c +++ b/src/pdf2swf.c @@ -203,6 +203,14 @@ int args_callback_option(char*name,char*val) { driver->set_parameter(driver, "ignoredraworder", "1"); return 0; } +#ifndef WIN32 + else if (!strcmp(name, "Q")) + { + int seconds = atoi(val); + alarm(seconds); + return 1; + } +#endif else if (!strcmp(name, "z")) { driver->set_parameter(driver, "enablezlib", "1"); @@ -371,6 +379,7 @@ struct options_t options[] = {"z","zlib"}, {"s","set"}, {"S","shapes"}, + {"Q","maxtime"}, {"j","jpegquality"}, {"p","pages"}, {"w","samewindow"},