PdfLoadOptions.PageIndex

PdfLoadOptions PageIndex property. Gets or sets the 0based index of the first page to read. Default is 0.

PdfLoadOptions.PageIndex property

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

public int PageIndex { get; set; }

Examples

Shows how to read the first page from PDF document.

PdfLoadOptions pdfLoadOptions = new PdfLoadOptions();
pdfLoadOptions.PageIndex = 0;
pdfLoadOptions.PageCount = 1;

Converter.Create()
    .From(MyDir + "Simple.pdf", pdfLoadOptions)
    .To(ArtifactsDir + "PdfLoadOptions.PageCount.xps")
    .Execute();

See Also