SkipPdfImages
PdfLoadOptions.SkipPdfImages property
获取或设置标志,指示加载 PDF 文档时是否必须跳过图像。默认值为错误的.
public bool SkipPdfImages { get; set; }
例子
展示如何在加载 PDF 文件时跳过图像。
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);
也可以看看
- class PdfLoadOptions
- 命名空间 Aspose.Words.Loading
- 部件 Aspose.Words