Convert Excel(with huge tables) to PDF

Hello,

We are using your Aspose.pdf package(4.8.0.0 ver) for converting excel file to pdf.

We encounter a problem when trying to convert excel file that contains huge table that takes up more than 1 page. on the converting it comes out in pdf format in one page.

Can you please guide me what should I do (via code) to convert the excel to pdf and keep tables according to their original size?

Please see attached files.

Thanks,

Hi Gal,


Thank you for using Aspose.Cells.

I tried to reproduce your mentioned issue with latest version of Aspose.Cells: Aspose.Cells for .NET v7.2.2.7, but couldn’t get success. I have attached the converted PDF here for your reference. Please have a look at it and let us know your feedback.

If you still find issue, please share your runnable code with us, so that we can analyze the issue in more detail.

<span style=“font-size:
10.0pt;font-family:“Courier New”;mso-no-proof:yes”>

Workbook w = new Workbook("Input.xlsx");

w.Save("OutputW.pdf", SaveFormat.Pdf);

Hi,

Thanks for your posting and using Aspose.Cells for .NET.

Please also note down that Aspose.Cells for .NET can convert your Excel files directly into Pdf, so you now do not need Aspose.Pdf for this purpose.

Please use the code as shared by Kashif above with the latest version.

And also see the following document for your reference.