Package org.artofsolving.jodconverter

Examples of org.artofsolving.jodconverter.OfficeDocumentConverter.convert()


                }
            }
            LOGGER.debug("进行文档转换转换:" + inputFile.getPath() + " --> " + outputFile.getPath());
            OfficeDocumentConverter converter = new OfficeDocumentConverter(officeManager);

            converter.convert(inputFile, outputFile);

            LOGGER.debug("文档转换完成:" + inputFile.getPath() + " --> " + outputFile.getPath());
            return outputFile;
        } catch (Exception e) {
            LOGGER.error(e);
View Full Code Here


    //pdfFile = pdfFile.replaceAll(" ", "").replaceAll(" ", "");
     org.jeecgframework.core.util.LogUtil.info("进行文档转换转换:" + inputFile + " --> " + pdfFile);
    OfficeDocumentConverter converter = new OfficeDocumentConverter(
        officeManager);
    try {
      converter.convert(new File(inputFile), new File(pdfFile));
    } catch (Exception e) {
      // TODO: handle exception
      org.jeecgframework.core.util.LogUtil.info(e.getMessage());
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.