Fixed NuProcessBuilder use for the second command in Pdf2SwfPageConverter.
This commit is contained in:
parent
ce31bdd369
commit
98e966bef1
@ -65,7 +65,7 @@ public class Pdf2SwfPageConverter implements PageConverter {
|
|||||||
+ File.separator, "pdf2swf", "-v", AVM2SWF, "-s", "poly2bitmap",
|
+ File.separator, "pdf2swf", "-v", AVM2SWF, "-s", "poly2bitmap",
|
||||||
"-F", fontsDir, "-p", String.valueOf(page), source, "-o", dest));
|
"-F", fontsDir, "-p", String.valueOf(page), source, "-o", dest));
|
||||||
Pdf2SwfPageConverterHandler pBmpHandler = new Pdf2SwfPageConverterHandler();
|
Pdf2SwfPageConverterHandler pBmpHandler = new Pdf2SwfPageConverterHandler();
|
||||||
pb.setProcessListener(pBmpHandler);
|
pbBmp.setProcessListener(pBmpHandler);
|
||||||
NuProcess processBmp = pbBmp.start();
|
NuProcess processBmp = pbBmp.start();
|
||||||
try {
|
try {
|
||||||
processBmp.waitFor(60, TimeUnit.SECONDS);
|
processBmp.waitFor(60, TimeUnit.SECONDS);
|
||||||
|
Loading…
Reference in New Issue
Block a user