Free Support Forum - aspose.com

Aspose cells java PDF conversion issue

Hi,

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?

Thanks,
Balakumar

@BalakumarSeethapathy,

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:
e.g
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.