PdfLoadOptionsSkipPdfImages Property

Gets or sets the flag indicating whether images must be skipped while loading PDF document. Default is False.

Namespace:  Aspose.Words.Loading
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 21.11.0


public bool SkipPdfImages { get; set; }

Property Value

Type: Boolean


Shows how to skip images during loading PDF files.
PdfLoadOptions options = new PdfLoadOptions();
options.SkipPdfImages = isSkipPdfImages;

Document doc = new Document(MyDir + "Images.pdf", options);
NodeCollection shapeCollection = doc.GetChildNodes(NodeType.Shape, true);

if (isSkipPdfImages)
    Assert.AreEqual(shapeCollection.Count, 0);
    Assert.AreNotEqual(shapeCollection.Count, 0);

ExpandedSee Also