From: kramm Date: Sun, 16 Dec 2001 14:25:09 +0000 (+0000) Subject: fix: with -bl, the dimensions weren't right. X-Git-Tag: release-0-2-1 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=1bfc6f9934af9ea425cdf58ab9ddc42e16487e1e fix: with -bl, the dimensions weren't right. --- diff --git a/pdf2swf/pdf2swf.cc b/pdf2swf/pdf2swf.cc index 739e421..4daa90a 100644 --- a/pdf2swf/pdf2swf.cc +++ b/pdf2swf/pdf2swf.cc @@ -299,10 +299,11 @@ int main(int argn, char *argv[]) printf("\n"); } if(preloader && viewer) { - systemf("swfcombine %s viewport=%s -o %s", + systemf("swfcombine %s viewport=%s -o __tmp__.swf", viewer, outputname, outputname); - systemf("swfcombine `swfdump -XY %s` `swfdump -r %s` %s/swfs/PreLoaderTemplate.swf loader=%s movie=%s -o %s", - outputname, preloader, DATADIR, preloader, outputname, outputname); + systemf("swfcombine `swfdump -XY %s` `swfdump -r %s` %s/swfs/PreLoaderTemplate.swf loader=%s movie=__tmp__.swf -o %s", + outputname, preloader, DATADIR, preloader, outputname); + systemf("rm __tmp__.swf"); } return 0;