We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Blank page at end of conversion to PDF

using latest DLL downloaded from site for evaluation. . Example xls attached. Resulting PDF always has blank last page (should only have 1 page, has 1 page + empty second page).

Workbook wb = new Workbook();

if (xlsx) {

wb.Open(path + "\\" + file, FileFormatType.Excel2007Xlsx);

} else {

wb.Open(path + "\\" + file, FileFormatType.ExcelXP);


wb.Save(path + "\\" + toReturn, FileFormatType.Pdf);

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for considering Aspose.

Well, the reason that 2 pages are generated is due to the PageSetup (Print Area setting) of your template excel file. Please check the print preview of your file, it will also show you two pages (second blank page) instead of one. Please adjust the print area and then convert the file to PDF.

Thank You & Best Regards,