SkipPdfImages

PdfLoadOptions.SkipPdfImages property

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

public bool SkipPdfImages { 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