Java development_ Imitate Baidu Library_ SWFTools_ Source download
•
Java
I wrote an article before:
Step 2 today: SWF (pdf2swf)
Before doing this, we should also make some preparations:
:
java project
String SWFTOOLS_PATH = "C:/Program Files (x86)/SWFTools" String FILE_NAME_OF_PDF = "pdf" String FILE_NAME_OF_SWF = "swf" String result = file.substring(0,file.lastIndexOf("/" (file.substring(2,3) == "/" result = file.substring(0,file.lastIndexOf("/" } (file.substring(2,3) == "\\" result = file.substring(0,file.lastIndexOf("\\" File myFolderPath = (! } System.out.println("新建目录操作出错" convertPDF2SWF(String sourcePath,String destPath) File source = (! 0 String command = SWFTOOLS_PATH + "/pdf2swf.exe -t \"" + sourcePath + "\" -o \"" + destPath + "\" -s flashversion=9 -s languagedir=D:\\xpdf\\xpdf-chinese-simplified " System.out.println("命令操作:" + command + "\n开始转换..." Process process = InputStream is1 = Thread( BufferedReader br = BufferedReader(