SkipPdfImages

PdfLoadOptions.SkipPdfImages property

获取或设置指示加载 PDF 文档时是否必须跳过图像的标志。默认为错误的.

public bool SkipPdfImages { get; set; }

例子

演示如何在加载 PDF 文件期间跳过图像。

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);
}
else
{
    Assert.AreNotEqual(shapeCollection.Count, 0);
}

也可以看看