git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added -a option
[swftools.git]
/
pdf2swf
/
pdf2swf.cc
diff --git
a/pdf2swf/pdf2swf.cc
b/pdf2swf/pdf2swf.cc
index
a99e176
..
c0dee56
100644
(file)
--- a/
pdf2swf/pdf2swf.cc
+++ b/
pdf2swf/pdf2swf.cc
@@
-211,6
+211,11
@@
int main(int argn, char *argv[])
srand48(time(0));
processargs(argn, argv);
initLog(0,-1,0,0,-1,loglevel);
+ if(!outputname)
+ {
+ fprintf(stderr, "Please use -o to specify an output file\n");
+ exit(1);
+ }
// test if the page range is o.k.
is_in_range(0x7fffffff, pagerange);