When converted to PDF, the content doesn't fit in one page

Hi,

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)

Aspose output (two pages):
output.pdf (676.3 KB)

Excel conversion output (single page as in the source xlsx file):
excel_output.pdf (127.2 KB)

@vad492,

Thanks for the template file.

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)

@amjad.sahi thank you for looking into it.

Looks like a false alarm. Perhaps something else is causing it on my side.

@vad492
You are welcome. Thank you for your feedback. If you have any questions, please feel free to contact us at any time.