epub

How to read epub files using javascript

核能气质少年 提交于 2019-12-19 02:39:14
问题 How to read epub files using javascript? I tried epubjs but thats not suited for my requirement. Is any other alternative javascript libraries available? 回答1: Readium Foundation just released Readium Web Components: see http://readium.org/news/announcing-readiumjs-a-javascript-library-for-browser-based-epub-3-reading (code: https://github.com/readium/Readium-Web-Components ) Alternatively, you might want to have a look at FuturePress: http://www.futurepress.org/ (code: https://github.com

Pandoc - Inserting pages before generated Table of Contents

五迷三道 提交于 2019-12-18 04:35:24
问题 I've been playing around with Pandoc. Is there anyway to insert pages before the generated Table of Contents? For example: Title Page Insert Custom Page 001 Insert Custom Page 002 (Generated) Table of Contents Many thanks in advance! 回答1: For this answer, I'm going to assume you are generating markdown, though the process is the same for other file formats as well. The key insight is that Pandoc uses templates to determine the final placement. It has default templates and if you modify them,

How to create an epub with drmed?

Deadly 提交于 2019-12-16 18:06:26
问题 I want to crate an epub file with drm , so when I open it with adobe edition reader or ibooks, it will reports it's drmed . Here is some refs: http://www.idpf.org/epub/301/spec/epub-ocf.html#app-schema-encryption 回答1: If you want to programmatically add (Adobe) DRM to EPUB files, you need to purchase an Adobe Active Content Server license from Adobe (and it is not cheap!): http://www.adobe.com/solutions/ebook/content-server.html If you are just interested in having one single EPUB file DRM'ed

fetch Cover Image from epub in ios

流过昼夜 提交于 2019-12-13 19:22:32
问题 I want to display Book Cover Image of epub file in my Reading table. In my iOS application I have added "Open In" support for epub files. So when i navigate to my book reading app I want to show book's cover image in shelf first and then want to load that book. Please help me to fetch Cover Image from epub book in ios app. 回答1: You will have to unzip the ePub and parse the metadata. Parse META-INF/container.xml and find the .OPF file path. The .OPF file contains all that you need, a tag meta

API's for supporting .epub format

别说谁变了你拦得住时间么 提交于 2019-12-13 14:54:36
问题 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 回答1: 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

creating *.epub with perl Archive::Zip — epubchecker error

*爱你&永不变心* 提交于 2019-12-13 14:25:17
问题 I am writing a perl script that will zip up a group of files from a given parent folder and create a *.epub file. The process works ok, and I am able to open the epub in adobe digital editions, but I get an epubchecker error: Required MTA-INF/container.xml resource is missing When I zip up the files manually (I'm on a winxp machine) there are no problems, but the perl created file throws the error. Here is the relevant code: #-------------------------------------------------------------------

How to convert any format(.txt, .Doc) file into epub file in android application

大憨熊 提交于 2019-12-13 11:52:18
问题 I am developing an application in which I have to read or write any eBook. In android so many libraries available for reading any eBook, but for writing i didn't find any thing. For reading any eBook file must be in .epub format. I have an editor in which i am entering some text and after saving that file in any format how can i convert that file into .epub file. Thanks in advance. 回答1: In android Java is developer language for create APP, use Epublib (lib in java) Read "doc file" with poi

Can't display table of contents or entire book on the screen

给你一囗甜甜゛ 提交于 2019-12-13 08:21:49
问题 I am creating a book reader using siegmann epub library. I am not able to display anything on the screen but in the logcat. What type of layout to use for display? Here is my main.java public class MainActivity extends Activity { private WebView webview; private String line, line1="", finalstr=""; int i = 0; private String fullBook; private Book book; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);

open an epub file from android app [closed]

白昼怎懂夜的黑 提交于 2019-12-13 05:27:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am trying to open an epub file from my android app using Moon Reader. Code given below. I am getting an error in the log as follows: 11-26 16:57:01.237: E/Web Console(12254): Uncaught Error: Error calling method on NPObject.:5914 Please can you advise what can be the issue? public void openEpub(String url) {

IOS toolbar not showing

為{幸葍}努か 提交于 2019-12-13 04:38:56
问题 i am new to ios programming. the problem i am having is i have set a toolbar in my xib file but after running the app the toolbar dont show. i have added this below line both in viewDidLoad function and in delegate.m class but still toolbar not showing self.navigationController.toolbarHidden = NO; here is my code - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];