Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
此示例使用 Adobe Reader 附带的库,来自 http ://www.dotnetspider.com/resources/5040-Get-PDF-Page-Number.aspx:
This example uses the library included with Adobe Reader, and comes from http://www.dotnetspider.com/resources/5040-Get-PDF-Page-Number.aspx:
您可以使用 Docotic.Pdf 库 搜索 PDF 文件中的文本。
以下示例展示了如何在 PDF 文件中查找指定字符串以及相应的页码:
如果删除 IndexOf 方法的第三个参数,则可以进行区分大小写的搜索。
免责声明:我为 Bit Miracle 工作,该库的供应商。
You can use Docotic.Pdf library to search for text in PDF files.
Following sample shows how to find specified strings in a PDF file and corresponding page numbers:
A case-sensitive search can be conducted if you remove third argument of IndexOf method.
Disclaimer: I work for Bit Miracle, vendor of the library.