PageCount
PdfLoadOptions.PageCount property
Okunacak sayfa sayısını alır veya ayarlar. Varsayılan değer MaxValue’dur, bu da belgenin tüm sayfalarının okunacağı anlamına gelir.
public int PageCount { get; set; }
Örnekler
PDF dosyaları yüklenirken resimlerin nasıl atlanacağını gösterir.
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);
Ayrıca bakınız
- class PdfLoadOptions
- ad alanı Aspose.Words.Loading
- toplantı Aspose.Words