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

Free Support Forum - aspose.com

Converting XLSX TO PDF

Dear Aspose Suport Team,

We are converting the xlsx to PDF using the code below.

PdfSaveOptions saveOpt = new PdfSaveOptions(SaveFormat.PDF);
workbook.save(pdfOutputPath+“MyPDFFile.pdf”, saveOpt);

xlsx has some print settings such as column breaks per page and also the page type (A4, legal).

But the generated PDF is not having those settings and when we print the PDF we are getting the column split ted and running over to the next pages where as in excel printing it is printing currently (for this we have manually selected the print settings since these are not carried over from xlsx to pdf while conversion)

we are using aspose.cells for java version 8.1.2.


Thanks for your posting and using Aspose.Cells.

Aspose.Cells generates PDF as Microsoft Excel displays it in Print Preview. So if your Print Preview rendering matches with Aspose.Cells generated PDF, then it is a correct behavior.

If it does not match, then please provide us your source Excel file which you are converting to PDF so that we could replicate this issue at our end and log it in our database for a fix.

Please also download and try the latest version: Aspose.Cells
for Java v8.3.1.2
and see if it makes any difference.