ChartToPdf Method (Stream, Single, Single, PageLayoutAlignmentType, PageLayoutAlignmentType)

Creates the chart pdf and saves it to a stream.

Namespace:  Aspose.Cells.Charts
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.9.0.0 (20.9)
Syntax
public void ToPdf(
	Stream stream,
	float desiredPageWidth,
	float desiredPageHeight,
	PageLayoutAlignmentType hAlignmentType,
	PageLayoutAlignmentType vAlignmentType
)

Parameters

stream
Type: System.IOStream
The output stream.
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