FixedPageSaveOptionsPageIndex Property

Gets or sets the 0-based index of the first page to save. Default is 0.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public int PageIndex { get; set; }

Property Value

Type: Int32
Examples
Converts just one page (third page in this example) of the document to PDF.
Document doc = new Document(MyDir + "Rendering.docx");

using (Stream stream = File.Create(ArtifactsDir + "Rendering.SaveToPdfStreamOnePage.pdf"))
{
    PdfSaveOptions options = new PdfSaveOptions();
    options.PageIndex = 2;
    options.PageCount = 1;
    doc.Save(stream, options);
}
See Also