PageSize Enumeration

Specifies page size.

Namespace:  Aspose.Tasks.Visualization
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public enum PageSize
Members
  Member nameValueDescription
Letter0 The size of the Letter page in points is 792 × 612
Ledger1 The size of the Ledger page in points is 1224 × 792
A02 The size of the A0 page in points is 3371 × 2384
A13 The size of the A1 page in points is 2384 × 1685
A24 The size of the A2 page in points is 1684 × 1190
A35 The size of the A3 page in points is 1190 × 842
A46 The size of the A4 page in points is 842 × 595
DefinedInView7 Use page size defined in View's PageSettings (View.PageInfo.PageSettings).
Examples
Shows how to set a value indicating that subtasks on the summary task bar must be rolled up.
var project = new Project(DataDir + "Project2.mpp");

project.DisplayOptions.ShowProjectSummaryTask = true;
project.Set(Prj.ShowProjectSummaryTask, true);

var options = new PdfSaveOptions
{
    PresentationFormat = PresentationFormat.GanttChart,
    FitContent = true,
    RollUpGanttBars = true,

    // OR
    // options.RollUpGanttBars = false;
    // DrawNonWorkingTime = true,
    PageSize = PageSize.A3
};

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