We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
您可以使用 Windows 内置的 IFilter 接口从任何受支持的文件类型中提取文本和属性(作者、标题等)。 它是一个 COM 接口,因此您可以使用 .NET 互操作工具。
您还必须从 Adobe 下载免费的 PDF IFilter 驱动程序。
You can use the IFilter interface built into Windows to extract text and properties (author, title, etc.) from any supported file type. It's a COM interface so you would have use the .NET interop facilities.
You'd also have to download the free PDF IFilter driver from Adobe.
这是一个很好的列表:
PDF/C# 开源库
其中大多数都是为了创建 PDF,但他们也应该具有阅读能力。
还有这个:iText
我以前只玩过iText。 没什么大不了的。
Here is a good list:
Open Source Libs for PDF/C#
Most of these are geared toward creating PDFs, but they should have read capability as well.
There is this one as well: iText
I have only played with iText before. Nothing major.
我们使用 Aspose 取得了良好的效果。
We've used Aspose with good results.
除了已批准的答案之外:还有其他商业解决方案可以替代 Adobe IFilter 进行文本索引(提供类似的 API,但也提供额外的高级功能):
如果您正在寻找可以从托管 .NET 应用程序和传统编程语言(例如经典 ASP 或 VB6)中使用的单一工具,那么这就是商业 ByteScout PDF Extractor SDK 适合,因为它提供 .NET 和 ActiveX/COM API。
免责声明:我为 ByteScout 工作
Addition to the to the approved answer: there are also alternative commercial solutions to replace Adobe IFilter for text indexing (providing the similar API but also offering additional premium functionality):
If you are looking for the single tool that can be used from both managed .NET apps and legacy programming languages like classic ASP or VB6 then this is where the commercial ByteScout PDF Extractor SDK would fit as it provides both .NET and ActiveX/COM API.
Disclaimer: I work for ByteScout
Docotic.Pdf 库 可用于从 PDF 文档中提取格式化文本或纯文本。
该图书馆可以阅读任何版本的PDF文档(达到最新发布的标准)。 该库还支持页面提取。
示例代码链接:
免责声明:我工作对于图书馆的供应商。
Docotic.Pdf library can be used to extract formatted or plain text from PDF documents.
The library can read PDF documents of any version (up to the latest published standard). Extraction of pages is also supported by the library.
Links to sample code:
Disclaimer: I work for the vendor of the library.