ParagraphAbsorber
概述
ParagraphAbsorber 是 Aspose.PDF FOSS 中用于 .NET 的一个类。
从 PDF 页面中提取文本并将其组织为章节和段落。
此类提供 6 个用于在 .NET 程序中处理 ParagraphAbsorber 对象的方法。可用的方法包括:ParagraphAbsorber、Visit。在安装了 Aspose.PDF FOSS for .NET 包之后,所有公共成员对任何 .NET 应用程序均可访问。属性:IsMulticolumnParagraphsAllowed、PageMarkups、ParagraphAbsorberOptions、SectionsSearchDepth、TextReplaceOptions。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
PageMarkups | List<PageMarkup> | 读取 | Visit(Document) 或 Visit(Page) 生成的页面标记。 |
ParagraphAbsorberOptions | ParagraphAbsorberOptions | 读写 | 活动选项包。 |
SectionsSearchDepth | int | 读写 | 在划分章节时要下降的嵌套层级数。 |
TextReplaceOptions | TextReplaceOptions? | 读写 | 在重新输出段落时,传递给内部 TextFragmentAbsorber 的选项。 |
IsMulticolumnParagraphsAllowed | bool | 读写 | 获取或设置是否启用多列段落合并。 |
方法
| 签名 | 描述 |
|---|---|
ParagraphAbsorber() | 在此 ParagraphAbsorber 实例上调用 ParagraphAbsorber。 |
ParagraphAbsorber(paragraphAbsorberOptions: ParagraphAbsorberOptions) | 在此 ParagraphAbsorber 实例上调用 ParagraphAbsorber(paragraphAbsorberOptions)。 |
ParagraphAbsorber(sectionsSearchDepth: int) | 在此 ParagraphAbsorber 实例上调用 ParagraphAbsorber(sectionsSearchDepth)。 |
ParagraphAbsorber(sectionsSearchDepth: int, paragraphAbsorberOptions: ParagraphAbsorberOptions) | 在此 ParagraphAbsorber 实例上调用 ParagraphAbsorber(sectionsSearchDepth, paragraphAbsorberOptions)。 |
Visit(doc: Document) | 访问整个文档 — 吸收所有页面。 |
Visit(page: Page) | 访问单个页面并将其文本吸收到章节/段落中。 |