Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Tuesday, May 8, 2012
e-Book library or parser (.azw, .mobi, epub)?
Im planning to develop a ebook reader app for android. Is there some library i can use to parse formats like .azw (amazon kindle), .mobi, pdf etc.
As Ranhiru said, here and here you can see how PDFs are parsed. For .mobi, however, there is no library, so you'll have to parse the format yourself. A full specification of the format can be read on the mobileread wiki.
With .azw files, it's different: if the Kindle ebook is DRM-free, then its format coincides with the .mobi one, i.e. they are absolutely interchangeable. Otherwise, it's very difficult to do, since you'll also have to generate a Kindle PID and perform the de-DRM-ing of the .azw file. There's a guide on how to do that on the desktop here. However, it is strongly not recommended, since it breaks the whole point of DRM and is illegal pretty much everywhere.
As Ranhiru said, here and here you can see how PDFs are parsed.
ReplyDeleteFor .mobi, however, there is no library, so you'll have to parse the format yourself. A full specification of the format can be read on the mobileread wiki.
With .azw files, it's different: if the Kindle ebook is DRM-free, then its format coincides with the .mobi one, i.e. they are absolutely interchangeable. Otherwise, it's very difficult to do, since you'll also have to generate a Kindle PID and perform the de-DRM-ing of the .azw file. There's a guide on how to do that on the desktop here. However, it is strongly not recommended, since it breaks the whole point of DRM and is illegal pretty much everywhere.