使用spire.xls 将Excel转换为PDF
下载spire.xls
public void getFileShow(HttpServletRequest request, HttpServletResponse response,Map technicsStandard) throws Exception{
String factoryId = StringUtils.objToString(technicsStandard.get("factoryid"));
String filename = technicsStandard.get("excelname").toString();
String pdfName = filename.split("\\.")[0];
File file = new File(getFilePdfPath(pdfName,factoryId));
if(!file.exists()) {
getFactoryFlowDefines(technicsStandard);
String newFilePath = getFilePath(filename, factoryId);
String newPDFPath = getFilePdfPath(pdfName, factoryId);
**Workbook wb = new Workbook();
wb.loadFromFile<