From: http://www.evget.com/zh-CN/Info/catalog/18041.html
Aspose. Cells supports converting XLS files (including images and charts) into PDF files. Aspose. cells can work independently to convert workbooks into PDF documents. You do not need to use aspose. pdf for conversion. This conversion process does not need to create or use any temporary files. The entire process is completed in the memory.
If you need to save each worksheet in the template Excel file to generate different PDF files. This method can be used easily. You can also decide the worksheet to be displayed based on the PDF file to be rendered. Other worksheets will be hidden.
The following is an example:
[Java]
// get the Excel file pathstring filepath = "F:/shak-data-RW/downloads/source.xlsx "; // instantiage a new workbook and open the Excel // file from its locationworkbook workbook = new Workbook (filepath); // get the count of the worksheets in the workbookint sheetcount = workbook. getworksheets (). getcount (); // make all sheets invisible tables t first worksheetfor (INT I = 1; I