This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes iOS and the fly likes Reading Epub files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » iOS
Bookmark "Reading Epub files" Watch "Reading Epub files" New topic

Reading Epub files

Sreelal Hamsavahanan

Joined: Jun 29, 2011
Posts: 4
I am trying to develop an iPhone application to read ePub files.
Is there any direct framework available to develop this? .
I tried to load the contents to a UIWebView by unzipping the ePub file and parsing the "container.xml" file inside the package.
So the contents can be viewed now,but i need to show this as page leaves(just like the native Ebook reader app in ipad).Is that possible ?
How can i capture touch events in uiwebview ?

Thanks in advance

Sreelal H
Pratik Goswami
Ranch Hand

Joined: Mar 02, 2009
Posts: 136

Hi Sreelal,

WebView is the easiest option if you want to render Epub files. You can provide the page curl effect on top of that.
At GitHub there is an example to provide such page leaves effect (most similar to iBook).

You will find something surprising in iOS 5.0

Thanks & Regards
Pratik Goswami

iOS * Android Developer
It is sorta covered in the JavaRanch Style Guide.
subject: Reading Epub files
Similar Threads
Convert Documents to EPUB, Split Large Docs & Read on iPod
Inserting web content in your native iPhone application
Read ePub files on iPhone
How to parse epub files
problems in downloading epub files