如何在pdf中搜索文本或单词 [英] How to search a text or a word in a pdf

查看:83
本文介绍了如何在pdf中搜索文本或单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以告诉我,一些pdf阅读器如何能够在他们的pdf中搜索文本,我已经制作了一个支持pdf的阅读器,但我无法在pdf中搜索文本?



我尝试了什么:



我试图使用OCR和文本编码但是有它所需的处理时间,在我无法理解如何在pdf中搜索确切文本之前,在将其转换为任何文本文件之前,它应该是相同的原始pdf

解决方案

您需要某种类型的pdf库,请查看开源PDF库Java [ ^ ]

Can someone please tell me that how does some pdf readers are able to search the text inside their pdf, I have made a reader that supports pdf, but I am not unable to search text in the pdf?

What I have tried:

I tried to use OCR and text encoding but there is a processing time required for it, further without I am unable to understand how to search for exact text inside a pdf, before converting it into any text file, it should be the same original pdf

解决方案

You will need some kind of pdf libraries to do so, check this out Open Source PDF Libraries in Java[^]


这篇关于如何在pdf中搜索文本或单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆