packageorg.common.util.pdftohtml;importorg.common.util.pdftohtml.StreamGobbler;/***@authorliuzhengyong
*@version1.0 时间:2013-12-30 下午2:24:10 pdf文件转html工具类*/
public classPdf2htmlEXUtil {/*** 调用pdf2htmlEX将pdf文件转换为html文件
*
*@paramexeFilePath
* pdf2htmlEX.exe文件路径
*@parampdfFile
* pdf文件绝对路径
*@param[destDir] 生成的html文件存放路径
*@paramhtmlName
* 生成的html文件名称
*@return
*/
public static booleanpdf2html(String exeFilePath, String pdfFile,
String destDir, String htmlFileName) {if (!(exeFilePath != null && !"".equals(exeFilePath) && pdfFile != null
&& !"".equals(pdfFile) && htmlFileName != null && !"".equals(htmlFileName))) {
System.out.println("传递的参数有误!");return false;
}
Runtime