Fit All Worksheet Columns on Single PDF Page

Fit Worksheet Columns on Single PDF Page

PdfSaveOptions.all_columns_in_one_page_per_sheet ensures that all columns in a worksheet are rendered to a single PDF page, although rows may expand to several pages depending on the data in worksheet.

The sample code below shows how to use PdfSaveOptions.all_columns_in_one_page_per_sheet property to render a large worksheet of 100 columns.