问题为使用swftools将pdf转换为swf时,未指定flash格式,页面加载出错。解决方法:
在cmd命令末尾加“ -T 9”指定转换文件为flash9格式。
String command = SWFTools_HOME + "\\pdf2swf.exe -i " + sourceFile + " -o "
+ destFile+" -T 9";
Process pro = Runtime.getRuntime().exec(command);