PageIndex
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 skip images during loading PDF files.
PdfLoadOptions options = new PdfLoadOptions();
options.SkipPdfImages = isSkipPdfImages;
options.PageIndex = 0;
options.PageCount = 1;
Document doc = new Document(MyDir + "Images.pdf", options);
NodeCollection shapeCollection = doc.GetChildNodes(NodeType.Shape, true);
if (isSkipPdfImages)
Assert.AreEqual(shapeCollection.Count, 0);
else
Assert.AreNotEqual(shapeCollection.Count, 0);
See Also
- class PdfLoadOptions
- namespace Aspose.Words.Loading
- assembly Aspose.Words