TableAbsorber
概述
TableAbsorber 是 Aspose.PDF FOSS 中用于 .NET 的一个类。
通过分析文本位置和线条绘制操作来检测并提取 PDF 页面中的表格。
此类提供 6 个方法,用于在 .NET 程序中操作 TableAbsorber 对象。可用的方法包括:Remove、Replace、TableAbsorber、Visit。在安装 Aspose.PDF FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:TableList、Tables、TextSearchOptions、UseFlowEngine。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Tables | IReadOnlyList<AbsorbedTable> | 读取 | 检测到表格。 |
TableList | IList<AbsorbedTable> | 读取 | 检测到表格(返回可变的底层列表)。 |
TextSearchOptions | TextSearchOptions? | 读写 | 控制大小写敏感性、正则表达式使用以及有界搜索矩形的搜索选项。 |
UseFlowEngine | bool | 读写 | 在表格检测期间是否使用流引擎。 |
方法
| 签名 | 描述 |
|---|---|
TableAbsorber() | 使用默认搜索选项构造。 |
TableAbsorber(textSearchOptions: TextSearchOptions) | 使用给定的文本搜索选项构造。 |
Remove(table: AbsorbedTable) | 从页面内容流和检测到的列表中移除表格。 |
Replace(page: Page, oldTable: AbsorbedTable, newTable: Aspose.Pdf.Table) | 将页面上的 oldTable 替换为 newTable。 |
Visit(pdf: Document) | 遍历 PDF 的每一页并检测表格。 |
Visit(page: Page) | 访问页面并检测表格。 |