ExcelをPDFにレンダリングする際のタイムラインの描画
Contents
[
Hide
]
ExcelをPDFにレンダリングする際のタイムラインの描画
タイムラインが適用されたExcelファイルがあり、そのタイムライン設定をPDFにエクスポートしたい場合、Aspose.Cells for Javaはデフォルトでサポートされています。Excelファイルをタイムライン付きでPDFにエクスポートするだけで、生成されたPDFには適用されたタイムラインが表示されます。
以下のサンプルコードは、既存のタイムラインを含むサンプルExcelファイルをロードします。その後、ワークブックを出力PDFファイルとして保存します。以下のスクリーンショットは、ソースの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-Java | |
// Load sample Excel file | |
Workbook wb = new Workbook("input.xlsx"); | |
// Save file to pdf | |
wb.save("out.pdf"); |