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

Free Support Forum - aspose.com

Problem with FitToPagesTall


I have a problem with Fit To Pages in conversion from Excel to PDF.

I have a page which contains some text, about 30% of page and an image which can be too tall so whole page content will be higher than A4 (as example) page. I tried to use PageSetup.FitToPagesTall property to solve that issue. But there is a problem. It does not work in PDF. I can see that in Excel it works perfectly but in PDF it does not work, image is not resized. I tried to use PageSetup.Zoom just to check if it works with PDF and it was fine. Can you please help me with that problem?

We are using Aspose.Cells and Aspose.Pdf


Sergey Roznikov.


Thank you for considering Aspose.

Please try the attached latest version of Aspose.Cells. As I tried your issue abit with the attached version and it works fine. If you still face any problem, please share your sample code and template file and we will check it soon. Also, we will recommend you to try the direct XLS2PDF conversion which does not require Aspose.PDF component. Please see the following documentation link in this regard:


Thank You & Best Regards,