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

Free Support Forum - aspose.com

Aspose cells java PDF conversion issue


I need to fit one sheet in one PDF page and this should happen only for the first page. After that the second sheet can roll over multiple pages in PDF.

Is there a way to achieve this while we convert our workbook to PDF?



For your specific needs, you may try to use/specify fit to pages tall and fit to pages wide PageSetup options for your desired sheet only, see the sample lines of code for your reference:
Sample code:

//Get your worksheet
Worksheet ws = workbook.Worksheets[0];
ws.PageSetup.FitToPagesTall = 1;
ws.PageSetup.FitToPagesWide = 1;

Hope, this helps a bit.

Thank you.