Class PdfLayoutSettings
Represents options to control how the worksheet layout is rendered in a PDF document.
Inherited Members
Namespace: Syncfusion.Blazor.Spreadsheet
Assembly: Syncfusion.Blazor.Spreadsheet.dll
Syntax
public class PdfLayoutSettings
Remarks
Use this class to customize page layout behavior during PDF export, including page fitting and page orientation.
The following properties determine how the worksheet content is rendered:
- FitSheetOnOnePage – Scales the entire worksheet to fit within a single PDF page.
- Orientation – Specifies whether PDF pages are rendered in portrait or landscape orientation.
This class is intended for simple, programmatic configuration of PDF page layout without modifying the worksheet data or structure.
Constructors
PdfLayoutSettings()
Declaration
public PdfLayoutSettings()
Properties
FitSheetOnOnePage
Gets or sets a value indicating whether the entire sheet should be scaled to fit on a single PDF page.
Declaration
public bool FitSheetOnOnePage { get; set; }
Property Value
| Type |
|---|
| bool |
Remarks
When set to true, the content of the sheet is scaled proportionally to fit within one page.
When set to false, the sheet may span multiple pages.
Orientation
Gets or sets the page orientation used for PDF output.
Declaration
public PdfPageOrientation Orientation { get; set; }
Property Value
| Type |
|---|
| PdfPageOrientation |
Remarks
This property determines whether the PDF pages are rendered in portrait or landscape orientation.