API's for supporting .epub format
Asked Answered
A

2

3

I have read that iPad supports .epub format. So are there any API's which makes it easy to read and display .epub format files?

Thanks

Antibaryon answered 29/7, 2010 at 5:43 Comment(0)
A
3

epub is simply a zipped up collection of xhtml files and metadata (indicies, publisher, author details etc) Epub specs

So all you need to do is unzip the file (can be done by renaming to a .zip extension) and then read the XHTML files in a browser. There will be a .opf file that lists all the files that are in the zip

This assumes that the epub file is not DRM protected if so then you cannot read it except through the program that the DRM is specified to use (usually Adobe Digital Editions on a computer - or iBooks on an iPad) Breaking this encryption is not allowed by DCMA or other laws in many countries.

Agoraphobia answered 29/7, 2010 at 6:5 Comment(3)
so there are no API's available?Antibaryon
No need for them the files use other standards -also the specification is the data format no one cares how you access the dataAgoraphobia
I'd still expect that Apple has implemented some "display epub here" API like the web view API for webpages.Havard
H
1

You dont need an API to display the epub, as said above it is simply a zipped collection of files and folders.

You need a way to unzip, find the files and simply display it in a UIWebView.

If you want page turning and pagination that is a totally different beast

Holst answered 8/8, 2010 at 17:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.