赞
踩
- //多个sheet
- String path = "C:\\Users\\Administrator\\Desktop\\999\\5\\a.xlsx";
- String path2 = "C:\\Users\\Administrator\\Desktop\\999\\5\\aaa.pdf";
- Workbook wb = new com.aspose.cells.Workbook(path);
- PdfSaveOptions options = new PdfSaveOptions();
- options.setAllColumnsInOnePagePerSheet(true);
- options.setOnePagePerSheet(true);
- wb.save(path2,options);
-
- wb.dispose();
- System.out.println("finish");
- //单独
- workbook.save(path2 , SaveFormat.PDF);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。