ChartToPdf Method (String, Single, Single, PageLayoutAlignmentType, PageLayoutAlignmentType)

Saves the chart to a pdf file.

Namespace:  Aspose.Cells.Charts
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 21.6.0.0 (21.6)
Syntax
public void ToPdf(
	string fileName,
	float desiredPageWidth,
	float desiredPageHeight,
	PageLayoutAlignmentType hAlignmentType,
	PageLayoutAlignmentType vAlignmentType
)

Parameters

fileName
Type: SystemString
the pdf file name with full path
desiredPageWidth
Type: SystemSingle
The desired page width in inches.
desiredPageHeight
Type: SystemSingle
The desired page height in inches.
hAlignmentType
Type: Aspose.CellsPageLayoutAlignmentType
The chart horizontal alignment type in the output page.
vAlignmentType
Type: Aspose.CellsPageLayoutAlignmentType
The chart vertical alignment type in the output page.
See Also