画像とグラフを含む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);

関連記事