X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fpdf2swf.c;h=f2425c7abf71af7d03b4da902f64e5b461034d4d;hp=4255fbf66889c2e0f2e715c06e8e8aaf917b5d79;hb=0983af6ba15f2969fa6e0ec068ffe34635ea0c88;hpb=cb84c92e02e9b116f3192e2fb0a7b7856cd23d1f diff --git a/src/pdf2swf.c b/src/pdf2swf.c index 4255fbf..f2425c7 100644 --- a/src/pdf2swf.c +++ b/src/pdf2swf.c @@ -640,18 +640,20 @@ int main(int argn, char *argv[]) exit(1); } - if(!outputname) - { - if(filename) { - outputname = stripFilename(filename, ".swf"); - msg(" Output filename not given. Writing to %s", outputname); - } - } - - if(!outputname) - { - fprintf(stderr, "Please use -o to specify an output file\n"); - exit(1); + if (!info_only) { + if(!outputname) + { + if(filename) { + outputname = stripFilename(filename, ".swf"); + msg(" Output filename not given. Writing to %s", outputname); + } + } + + if(!outputname) + { + fprintf(stderr, "Please use -o to specify an output file\n"); + exit(1); + } } // test if the page range is o.k.