2017-09-14 58 views
-1

我目前正在研究一种允许人们阅读宪法的Android应用程序,问题是我只能设法将软件复制到PDF文档中。理想情况下,我想了一个API,让我去取的主题,问题或段落文档时,我想到了让做将PDF转换为文本并从android中读取

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我需要一种方式我可以从数据库加载数据,这样我就可以分页,一次加载一个段落或主题。任何一个处于类似情况的人都可以帮助我找出可能的最佳方式。

+0

怎么样我的文档转换为HTML?我的意思是,这将处理我的大部分问题不会呢? –

回答

0

你不将其转换为文本,您可以集成在应用程序MuPdf检查这个答案我发现integrating pdf reader

+0

这就像选项1,它的问题是我不能够混淆文本,Incase我想从标题或词从文档中获取内容它不会是可能的 –

+0

如果你想混乱的文字,你可以在将其上传到服务器之前手动将其混淆。 – Orvenito

相关问题