将PDF转换为文本并从android中读取

时间:2017-09-14 08:48:55

标签: android

我目前正在开发一个Android应用程序,允许人们阅读宪法,问题是我只能设法获得软拷贝pdf文档。理想情况下,我想要一个允许我通过主题,问题或段落获取文档的API,我想到了多种方法来完成工作

 1. Is by putting the document on the server, when user opens the app it downloads the pdf and allows them to read it(Problem with this is I won't be able to mess with the content like bold some text etc).
 2. Is copying the content of the pdf into the databse and just fetching the text with a query(issue with this is I wont be able to do pagination given I put the content in one field)

这是Constitution的链接我需要一种方法,我可以通过这种方式从数据库加载数据,我可以分页,一次加载一个段落或主题。任何处于类似情况的人都可以帮助我找到最好的方法。

1 个答案:

答案 0 :(得分:0)

您无法将其转换为文字,您可以将MuPdf集成到您的应用中查看此答案我发现integrating pdf reader

相关问题