I’m converting an Excel file into a PDF with Aspose. Excel file’s content is supposed to fit into a single page, but it takes two pages when using Aspose to convert to PDF.
No issues when converting manually with Excel (Save as PDF…)
The conversion code:
var doc = new Workbook("original_input.xlsx");
doc.Save("output.pdf", SaveFormat.Pdf);
The file being converted (single page): input.xlsx.zip (1.6 MB)
I tested your scenario/case using your template XLSX file with Aspose.Cells for .NET v24.4 and it works fine and as expected. It renders single paged PDF. Here is my sample code that I am using:
e.g. Sample code:
var doc = new Workbook("g:\\test2\\input.xlsx");
doc.Save("g:\\test2\\output1.pdf", SaveFormat.Pdf);
Please find attached the output PDF for your reference. output1.pdf (690 KB)