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 (parent:
aff5dbb
)
set pagerange before conversion (for speedup)
author
kramm
<kramm>
Sun, 26 Nov 2006 19:43:33 +0000
(19:43 +0000)
committer
kramm
<kramm>
Sun, 26 Nov 2006 19:43:33 +0000
(19:43 +0000)
src/pdf2swf.c
patch
|
blob
|
history
diff --git
a/src/pdf2swf.c
b/src/pdf2swf.c
index
6a61571
..
9362813
100644
(file)
--- a/
src/pdf2swf.c
+++ b/
src/pdf2swf.c
@@
-489,8
+489,6
@@
int main(int argn, char *argv[])
initLog(0,-1,0,0,-1,loglevel);
initLog(0,-1,0,0,-1,loglevel);
- driver = gfxsource_pdf_create();
-
#if defined(WIN32) && defined(HAVE_STAT) && defined(HAVE_SYS_STAT_H)
if(installPath) {
fontdir = concatPaths(installPath, "fonts");
#if defined(WIN32) && defined(HAVE_STAT) && defined(HAVE_SYS_STAT_H)
if(installPath) {
fontdir = concatPaths(installPath, "fonts");
@@
-513,8
+511,10
@@
int main(int argn, char *argv[])
srand(time(0));
#endif
#endif
srand(time(0));
#endif
#endif
- processargs(argn, argv);
+ driver = gfxsource_pdf_create();
+ processargs(argn, argv);
+
if(!filename)
{
fprintf(stderr, "Please specify an input file\n");
if(!filename)
{
fprintf(stderr, "Please specify an input file\n");
@@
-543,6
+543,9
@@
int main(int argn, char *argv[])
// test if the page range is o.k.
is_in_range(0x7fffffff, pagerange);
// test if the page range is o.k.
is_in_range(0x7fffffff, pagerange);
+ if(pagerange)
+ driver->set_parameter("pages", pagerange);
+
if (!filename) {
args_callback_usage(argv[0]);
exit(0);
if (!filename) {
args_callback_usage(argv[0]);
exit(0);