fix: with -bl, the dimensions weren't right. release-0-2-1
authorkramm <kramm>
Sun, 16 Dec 2001 14:25:09 +0000 (14:25 +0000)
committerkramm <kramm>
Sun, 16 Dec 2001 14:25:09 +0000 (14:25 +0000)
pdf2swf/pdf2swf.cc

index 739e421..4daa90a 100644 (file)
@@ -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;