git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed small typo in error message
[swftools.git]
/
src
/
pdf2swf.c
diff --git
a/src/pdf2swf.c
b/src/pdf2swf.c
index
3b5c8b4
..
975aa6c
100644
(file)
--- a/
src/pdf2swf.c
+++ b/
src/pdf2swf.c
@@
-32,7
+32,7
@@
#include "../lib/os.h"
#include "../lib/rfxswf.h"
#include "../lib/devices/swf.h"
#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"
#include "../lib/devices/record.h"
#include "../lib/pdf/pdf.h"
#include "../lib/log.h"
@@
-154,7
+154,7
@@
int args_callback_option(char*name,char*val) {
char*x2 = strtok(0, ":");
char*y2 = strtok(0, ":");
if(!(x1 && y1 && x2 && y2)) {
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;
exit(1);
}
custom_clip = 1;
@@
-266,12
+266,11
@@
int args_callback_option(char*name,char*val) {
driver->set_parameter(driver, "bitmapfonts", "1");
if(level>=3)
driver->set_parameter(driver, "ignoredraworder", "1");
driver->set_parameter(driver, "bitmapfonts", "1");
if(level>=3)
driver->set_parameter(driver, "ignoredraworder", "1");
-
- flatten = 1;
return ret;
}
else if (!strcmp(name, "G"))
{
return ret;
}
else if (!strcmp(name, "G"))
{
+ driver->set_parameter(driver, "optimize_polygons", "1");
flatten = 1;
return 0;
}
flatten = 1;
return 0;
}