1

I have data in the pdf format(Not in english). I want to load the data to my app and app will be offline. What are the elements i shall be using in android to make the app which is like reading data chapterwise? As the data i have is huge,how to load it offline from pdf? What is the efficient way?

This is reference link for the app:

https://play.google.com/store/apps/details?id=com.winjit.hclite&hl=en

Varuni N R
  • 802
  • 3
  • 11
  • 31

1 Answers1

2

Getting the text of a pdf is a hard task in android. You can check this other similar questions to this topic which all have no straight forward answer: Link, Link, Link.

If you cant workaround this there are commercial libarys out there which you can find pretty easy with your search engine of choice (I don't want to promote them here).

Community
  • 1
  • 1
IIIIIIIIIIIIIIIIIIIIII
  • 3,958
  • 5
  • 45
  • 70
  • Okay thanks for the suggestion. What kind of elements i should be using in android to make it look like reading chapter wise? – Varuni N R Oct 25 '16 at 10:50
  • If you successfully read the text from a pdf you need a way to detect the end/start of a chapter. If your pdf for example has a index page you can use it to get the chapter headings -> search for this headings in your plain text and split by it. – IIIIIIIIIIIIIIIIIIIIII Oct 25 '16 at 10:55
  • But if it is possible I would avoid taking pdf as input for what you are planing to do. There is a reason why most of the book readers have another format than pdf – IIIIIIIIIIIIIIIIIIIIII Oct 25 '16 at 10:56
  • Okay did not have idea on this. What could be the best format to take input from other than pdf? – Varuni N R Oct 25 '16 at 11:00
  • This is a absolute new question. I would take a look at the the formats the book readers use. I think your use case is pretty similar. – IIIIIIIIIIIIIIIIIIIIII Oct 25 '16 at 11:10
  • Ok thank u.. Please do post if u get any information. That would do a lot of help. – Varuni N R Oct 25 '16 at 12:17
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/126618/discussion-between-markb-and-varuni). – IIIIIIIIIIIIIIIIIIIIII Oct 25 '16 at 12:19