使用Aspose.cells实现Excel转换为pdf
来源:互联网 发布:舒适图标知乎 编辑:程序博客网 时间:2024/06/05 18:39
import java.io.FileInputStream;
import java.io.InputStream;
import com.aspose.cells.License;
import com.aspose.cells.SaveFormat;
import com.aspose.cells.Workbook;
public class CellsConverter {
public CellsConverter() throws Exception {
License license = new License();
InputStream open = CellsConverter.class.getResource("license.xml").openStream();
license.setLicense(open);
open.close();
}
public void getConverter(String oldPath, String savePath) throws Exception {
Workbook book = new Workbook(new FileInputStream(oldPath));
book.save(savePath, SaveFormat.PDF);
}
}
import java.io.InputStream;
import com.aspose.cells.License;
import com.aspose.cells.SaveFormat;
import com.aspose.cells.Workbook;
public class CellsConverter {
public CellsConverter() throws Exception {
License license = new License();
InputStream open = CellsConverter.class.getResource("license.xml").openStream();
license.setLicense(open);
open.close();
}
public void getConverter(String oldPath, String savePath) throws Exception {
Workbook book = new Workbook(new FileInputStream(oldPath));
book.save(savePath, SaveFormat.PDF);
}
}
阅读全文
0 0
- 使用Aspose.cells实现Excel转换为pdf
- 使用Aspose.Cells生成Excel
- 使用Aspose.Cells实现后台输出Excel报表(C#)
- aspose.cells使用excel模板生成excel
- Aspose.Cells单元格转换为数字格式
- 使用Aspose.Pdf for .NET实现PDF文档到Excel、EPS、SVG等的转换
- 使用Aspose.Pdf将PDF转换为JPEG图片格式
- 使用Aspose.Pdf将MemoryStream转换为PDF
- 使用Aspose.Cells将工作表保存为不同的PDF文件
- 使用Aspose.Words如何将图像转换为PDF
- 用ASPOSE.Cells将HTML表格存为Excel
- Aspose.Cells 使用整理
- Aspose.Cells 使用汇总
- aspose.cells基础使用
- MVC利用Aspose.Cells.dll实现Excel数据导入数据库
- Aspose.Cells 使用整理:读取Excel文件里的数据
- 【学习笔记】C#使用Aspose.Cells.dll处理excel表格
- c#使用aspose.cells 从datatable导出数据到excel
- Java的位运算符详解实例——与(&)、非(~)、或(|)、异或(^)
- redis32位安装和后台启动服务启动
- NDK编译——独立工具链
- 配置Nodejs
- Mac-记录一些超好用的快捷键
- 使用Aspose.cells实现Excel转换为pdf
- Eclipse安装JD-Eclipse反编译插件
- OC序列化
- ThreadPool
- 全排列及相关扩展算法(一)——基础的回溯递归实现全排列算法
- python调用NESSUS API以实现自动化扫描
- Unity 物理系统--射线
- leetcode#17. Letter Combinations of a Phone Number
- POJ 1704 Georgia and Bob ( 阶梯博弈 模板 )