SaveOptionsCustomPageSize Property

Gets or sets the custom page size in points (1 point = 1/72 of inch).

Namespace:  Aspose.Tasks.Saving
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.4
Syntax
public SizeF CustomPageSize { get; set; }

Property Value

Type: SizeF
Examples
Shows how to set custom page size when project is saved to PDF.
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");

var options = new PdfSaveOptions();
options.PresentationFormat = PresentationFormat.GanttChart;
options.CustomPageSize = new SizeF(5.8F * 72, 8.3F * 72);

project.Save(OutDir + "WorkWithCustomPageSize_out.pdf", options);
See Also