ParagraphAbsorber

ParagraphAbsorber

概述

ParagraphAbsorber 是 Aspose.PDF FOSS 中用于 .NET 的一个类。

从 PDF 页面中提取文本并将其组织为章节和段落。

此类提供 6 个用于在 .NET 程序中处理 ParagraphAbsorber 对象的方法。可用的方法包括:ParagraphAbsorber、Visit。在安装了 Aspose.PDF FOSS for .NET 包之后,所有公共成员对任何 .NET 应用程序均可访问。属性:IsMulticolumnParagraphsAllowed、PageMarkups、ParagraphAbsorberOptions、SectionsSearchDepth、TextReplaceOptions。

属性

名称类型访问描述
PageMarkupsList<PageMarkup>读取Visit(Document) 或 Visit(Page) 生成的页面标记。
ParagraphAbsorberOptionsParagraphAbsorberOptions读写活动选项包。
SectionsSearchDepthint读写在划分章节时要下降的嵌套层级数。
TextReplaceOptionsTextReplaceOptions?读写在重新输出段落时,传递给内部 TextFragmentAbsorber 的选项。
IsMulticolumnParagraphsAllowedbool读写获取或设置是否启用多列段落合并。

方法

签名描述
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)访问单个页面并将其文本吸收到章节/段落中。

另请参阅

 中文