用于支持.epub格式的API [英] API's for supporting .epub format

查看:173
本文介绍了用于支持.epub格式的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过iPad支持.epub格式。那么是否有任何API可以轻松阅读和显示.epub格式文件?

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?

谢谢

推荐答案

epub只是一个压缩的xhtml文件和元数据集合(标记,出版商,作者详细信息等) Epub规格

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

所以你需要做的就是解压缩文件(可以通过重命名为.zip扩展名来完成)和然后在浏览器中读取XHTML文件。将有一个.opf文件列出zip中的所有文件

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

这假设epub文件不受DRM保护,如果是这样的话你就读不懂了通过DRM指定使用的程序(通常是计算机上的Adobe Digital Editions或iPad上的iBooks)DCMA或许多国家/地区的其他法律不允许破解此加密。

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.

这篇关于用于支持.epub格式的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆