X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fpdf2swf.cc;h=c0dee56a235d82c51a292154670a791ae369738f;hb=3029f41a6559e856defe64721fe98ac3287cef91;hp=a99e176159b6ddc8f5f1dc818f9d037a2efa7f90;hpb=f6edd178f1d3693dfc392a47c8ac562b82339d3f;p=swftools.git diff --git a/pdf2swf/pdf2swf.cc b/pdf2swf/pdf2swf.cc index a99e176..c0dee56 100644 --- 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);