Class PdfMultiPageSettings
Provides configuration settings for multi-page PDF export in the Gantt Chart. Includes options for scaling and page fitting during export.
Inherited Members
Namespace: Syncfusion.Blazor.Gantt
Assembly: Syncfusion.Blazor.dll
Syntax
public class PdfMultiPageSettings
Constructors
PdfMultiPageSettings()
Declaration
public PdfMultiPageSettings()
Properties
PageTall
Gets or sets the target number of pages tall to fit the exported content.
Declaration
public int PageTall { get; set; }
Property Value
| Type | Description |
|---|---|
| int | An integer with a minimum value of 1 and a maximum equal to the original computed pages-tall for the export. If a value exceeds the original pages-tall, the original value is used. If a value is less than the original, it is treated as a best-effort target. |
Remarks
The actual number of pages in the exported PDF may differ from the target due to discrete packing of rows and timeline cells, as well as variations in available space caused by headers, footers, and scaling settings. For example, if the original pages-tall is 6 and this property is set to 4, the exporter attempts to fit content within approximately 4 pages tall, but the final page count may vary.
PageWide
Gets or sets the target number of pages wide to fit the exported content.
Declaration
public int PageWide { get; set; }
Property Value
| Type | Description |
|---|---|
| int | An integer with a minimum value of 1 and a maximum equal to the original computed pages-wide for the export. If a value exceeds the original pages-wide, the original value is used. If a value is less than the original, it is treated as a best-effort target. |
Remarks
The actual total page count may not equal the product of target pages-wide and pages-tall due to discrete packing of columns and timeline units, as well as variations in chart band width on the last grid page. For example, if the original pages-wide is 5 and this property is set to 3, the exporter attempts to fit content within approximately 3 pages wide, but the final page count may vary.
ScaleMode
Chooses how the Gantt chart scales in multi-page PDF export.
Declaration
public GanttPdfExportScaleMode ScaleMode { get; set; }
Property Value
| Type | Description |
|---|---|
| GanttPdfExportScaleMode |
|
Remarks
Determines how the Gantt chart content is resized during export.
Percentage auto-scales the chart for the best look.
FitToPages compresses content to fit within the number of pages
specified by TotalPages.
ScalePercentage
Defines the scaling percentage used when ScaleMode is set to Percentage.
Declaration
public int ScalePercentage { get; set; }
Property Value
| Type | Description |
|---|---|
| int | An integer between 10 and 400 representing the percentage to scale the Gantt chart content. |
Remarks
Values outside the valid range are clamped to ensure proper rendering.
This property is ignored when ScaleMode is set to FitToPages.
TotalPages
Gets the total number of pages in the exported PDF.
Declaration
public int TotalPages { get; }
Property Value
| Type | Description |
|---|---|
| int | The total number of pages calculated based on content size, scaling mode. |
Remarks
This property indicates the final number of pages generated during a multi-page PDF export of the Gantt chart. The value accounts for the layout of content, including rows, columns, headers, footers, and scaling settings.