PdfSaveOptionsPages Property

Gets or sets the list of pages numbers to save when saving project layout to separate files.
Remarks
All pages will be saved if this list is empty.

Namespace:  Aspose.Tasks.Saving
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 20.5
Syntax
public List<int> Pages { get; set; }

Property Value

Type: ListInt32
Examples
Shows how to save selected pages of a project into PDF file.
var project = new Project(DataDir + "Software Development Plan.mpp");
var options = new PdfSaveOptions();
options.SaveToSeparateFiles = true;
options.Pages = new List<int>();

// lets check the number of pages can be exported
Console.WriteLine("Page Count: " + options.PageCount);

options.Pages.Add(1);
options.Pages.Add(4);
project.Save(OutDir + "SaveToMultiplePDFFiles_out.pdf", options);
See Also