#include "../lib/os.h"
#include "../lib/rfxswf.h"
#include "../lib/devices/swf.h"
-#include "../lib/devices/arts.h"
+#include "../lib/devices/polyops.h"
#include "../lib/devices/record.h"
#include "../lib/pdf/pdf.h"
#include "../lib/log.h"
char*x2 = strtok(0, ":");
char*y2 = strtok(0, ":");
if(!(x1 && y1 && x2 && y2)) {
- fprintf(stderr, "-m option requires four arguments, <x1>:<y1>:<x2>:<y2>\n");
+ fprintf(stderr, "-c option requires four arguments, <x1>:<y1>:<x2>:<y2>\n");
exit(1);
}
custom_clip = 1;
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");
driver->set_parameter(driver, "linksopennewwindow", "0");
return 0;
}
+ else if (!strcmp(name, "O"))
+ {
+ int level = 1;
+ int ret=0;
+ if(val&& val[0] && val[1]==0 && isdigit(val[0])) {
+ level = atoi(val);
+ ret=1;
+ }
+ if(level>=1)
+ driver->set_parameter(driver, "poly2bitmap", "1");
+ if(level>=2)
+ driver->set_parameter(driver, "bitmapfonts", "1");
+ if(level>=3)
+ driver->set_parameter(driver, "ignoredraworder", "1");
+ return ret;
+ }
else if (!strcmp(name, "G"))
{
+ driver->set_parameter(driver, "optimize_polygons", "1");
flatten = 1;
return 0;
}
{"z","zlib"},
{"s","set"},
{"S","shapes"},
+ {"Q","maxtime"},
{"j","jpegquality"},
{"p","pages"},
{"w","samewindow"},
result->destroy(result);
pdf->destroy(pdf);
+ driver->destroy(driver);
const char*zip = "";
if(zlib) {
systemf("rm %s", tmpname);
}
+
return 0;
}