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

Free Support Forum - aspose.com

Converting Excel file to pdf

I am evaluating aspose product for the purpose of converting all types of office documents into PDF using code (java).
The problem is that when I try to convert excel files into PDF, the output PDF file splitting the columns into different pages rather than keeping the original format of keeping all the columns beside each other. here is the code I am using to convert :
Workbook workbook = new Workbook(“D:/try/test.xlsx”);
workbook.save(“D:/try/test.pdf”, com.aspose.cells.SaveFormat.PDF);

can u plz help fixing this, thanking you in advance.

Hi Aablan,

Thank you for considering Aspose products.

Please check the following article to fit all columns of a worksheet on single page of resultant PDF. Hope this will suit your requirement. In case you meant something else, please feel free to write back with more details.