SaveOptionsPageSize Property

Gets or sets the size of page to be rendered (Default value is PageSize.A4).

Namespace:  Aspose.Tasks.Saving
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 20.11
Syntax
public PageSize PageSize { get; set; }

Property Value

Type: PageSize
Examples
Shows how to set page size (can be one of the values of the <see cref="P:Aspose.Tasks.Visualization.TiffCompression" /> enumeration).
var project = new Project(DataDir + "Project2.mpp");

const PresentationFormat Format = PresentationFormat.GanttChart;

// Render the project to all Pre-Defined page sizes
foreach (var pageSize in (PageSize[])Enum.GetValues(typeof(PageSize)))
{
    var options = new PdfSaveOptions
    {
        PresentationFormat = Format,
        FitContent = true,
        PageSize = pageSize
    };
    project.Save(OutDir + "PredefinedPageSizes_" + Format + "_" + pageSize + "_out.pdf", options);
}
See Also