Is there an API to read ePub books?

Zain Rizvi picture Zain Rizvi · May 26, 2011 · Viewed 10.4k times · Source

I'm trying to create an ebook reader for WP7. So far I haven't been able to find any API to read ePub books with.

Thanks, Zain

Answer

CodesInChaos picture CodesInChaos · May 26, 2011

For DRM-free html based ePubs(there are also dtbook based ePubs, but I've never seen one) you can simply use a few libraries to build a reader:

  1. An html render control, since the content is based on xhtml 1 and css
  2. A zip library because the container is a zip archive
  3. An xml library to parse the meta data files

For 2. and 3. there are many libraries, some of which support silverlight/WP7. No idea about 1, but I suspect WP7 already offers such a control.