在将 Excel 渲染为 PDF 时绘制分析器
Contents
[
Hide
]
在将 Excel 渲染为 PDF 时绘制分析器
如果您的 Excel 文件已应用分析器并且您希望将 Excel 导出为带有分析器设置的 PDF,则 Aspose.Cells 现在默认支持此操作。您只需将带有分析器的 Excel 文件导出为 PDF,生成的 PDF 将显示已应用的分析器。
以下示例代码加载了包含现有切片器的sample Excel file。然后将工作簿保存为output PDF file。以下截图比较了源Excel文件和生成的PDF文件。
示例代码
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
Workbook workbook = new Workbook(sourceDir + "SampleSlicerChart.xlsx"); | |
workbook.Save(outputDir + "SampleSlicerChart.pdf", SaveFormat.Pdf); |