epub

How to open a file on iBooks

▼魔方 西西 提交于 2019-12-01 12:48:34
How can I open a book on iBooks? I tried the following code, that works, but asks the user to choose an application to open the file: self.docController = [UIDocumentInteractionController alloc]; //leaves only the file name NSString *bookFile = @"my-book.pdf"; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex: 0]; NSString* filePath = [documentsDirectory stringByAppendingPathComponent: bookFile]; // Using the Book path self.docController = [UIDocumentInteractionController

JavaScript doesn't work on ICS

♀尐吖头ヾ 提交于 2019-12-01 11:23:29
I am working on EPUB reader for the company using JavaScript, the application runs well on Android 2.2, but when i try it on ICS & HoneyCom, the JavaScript doesn't work well. The first problem i faced, the WebView doesn't load JS files ( Unknown Error -6 ), so i used this solution: @TargetApi(11) @Override public WebResourceResponse shouldInterceptRequest(WebView view, String url) { Log.d("shouldInterceptRequest", url); InputStream stream = inputStreamForAndroidResource(url); if (stream != null) { return new WebResourceResponse("text/javascript", "utf-8", stream); } return super

How to download an epub file locally to our iPhone?

青春壹個敷衍的年華 提交于 2019-12-01 11:05:49
问题 I want to download an epub file in to my app locally by passing the url of the file: http://www.jedisaber.com/eBooks/books/sample.epub Clicking this url should download an epub. How can I get it to download to my app? I tried using NSData but it didn't work. I also tried copying the file to my document directory but it also didn't work. Can anybody tell me how can I do this in Objective-C? Any help code would be appreciated! Thanks for any help. 回答1: EPUB is a ZIP format, you can use any

How to read all content of Epub file in android?

♀尐吖头ヾ 提交于 2019-12-01 08:11:42
I want to read all content of all toc. Can u please tell me how to read all chapter which is there in table of content(toc ). Please post modified code so that we can read all content or post some thing so that i can read content . public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); AssetManager assetsmanger=getAssets(); try { // find InputStream for book InputStream epubInputStream=assetsmanger.open("books/INCOME-TAX-ACT-1961.epub"); // Load Book from inputStream Book book = (new EpubReader()).readEpub(epubInputStream); // Log

How to read all content of Epub file in android?

坚强是说给别人听的谎言 提交于 2019-12-01 05:47:20
问题 I want to read all content of all toc. Can u please tell me how to read all chapter which is there in table of content(toc ). Please post modified code so that we can read all content or post some thing so that i can read content . public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); AssetManager assetsmanger=getAssets(); try { // find InputStream for book InputStream epubInputStream=assetsmanger.open("books/INCOME-TAX-ACT-1961

How to read epub files using javascript

非 Y 不嫁゛ 提交于 2019-11-30 20:54:47
How to read epub files using javascript? I tried epubjs but thats not suited for my requirement. Is any other alternative javascript libraries available? 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/fchasen/epub.js/ ) Finally, TEA also has something you might find interesting: https://github.com/TEA-ebook

Text Highlighting and add notes function in epub reader ios

我的梦境 提交于 2019-11-30 16:43:43
I am developing epub reader for ios and android. I want to implement text highlights and add note function to my epub reader. And I want to know how to these functionality for fixed layout epub. I can get selected object by javascript:window.getSelection() . I want to save and retrieve these objects for future use. Here the code I used for highlighting and saving text: var selection; var storedSelections[]; function highlightText() { if (window.getSelection) { selection = window.getSelection(); } if (selection.rangeCount > 0) { var range = selection.getRangeAt(0); var selectedText = range

Text Highlighting and add notes function in epub reader ios

本小妞迷上赌 提交于 2019-11-30 16:10:49
问题 I am developing epub reader for ios and android. I want to implement text highlights and add note function to my epub reader. And I want to know how to these functionality for fixed layout epub. I can get selected object by javascript:window.getSelection() . I want to save and retrieve these objects for future use. Here the code I used for highlighting and saving text: var selection; var storedSelections[]; function highlightText() { if (window.getSelection) { selection = window.getSelection(

Is there an API to read ePub books? [closed]

邮差的信 提交于 2019-11-30 15:24:19
问题 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 6 years ago . 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 回答1: EPUB sharp beta - http://sourceforge.net/projects/epubsharp/ Also, you can check out the draft of the ePub 3 spec here Edit: Fixed the link EPUB Sharp has not been updated since a

Is there an API to read ePub books? [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 14:21:15
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 abhilash EPUB sharp beta - http://sourceforge.net/projects/epubsharp/ Also, you can check out the draft of the ePub 3 spec here Edit: Fixed the link EPUB Sharp has not been updated since a long time. Here 's a step by step procedure in building your own (for iPhone, IMO it's good starting point). 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: An html render control, since