画像とチャートを含む XLS を PDF に変換します

Contents
[ ]

プロセスは一時または中間の XML ファイルに依存しないため、プロセスはメモリ内で実行できます。これは、画像、チャート、その他の描画オブジェクトを含む大きな Excel ファイルをすばやく効率的に変換できることを意味します。

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
// The path to the documents directory.
String dataDir = Utils.getDataDir(ConvertXLSFileToPDF.class);
//Create a new Workbook
Workbook book = new Workbook(dataDir + "SampleInput.xlsx");
//Save the excel file to PDF format
book.save(dataDir + "output.pdf", SaveFormat.PDF);

関連記事