I am developing an Ebook for iPhone that loads ePUB file. I have unzipped the epub file. Now I want to view the content in the unzipped epub file. how would I proceed from here?
Have a read of the ePUB file format (from wikipedia - http://en.wikipedia.org/wiki/EPUB)
This points out the files that are the starting points of the book i.e. the container.xml file will tell you where the main opf files are etc.
ePub files include HTML files, have you tried viewing them in UIWebView, or creating a parser?
Please look at this thread Reading ePub format which describes detail steps(From Euan) and sample project (From Sreelal).
Related
I am learning on epub reader app. I have tried and parsed the epub 2. I found that it has a opf file which refer to toc.ncx file which is actually a xml file and I can parse it to get the content and html files. Than I can display it in UIWebView.
I tried with same approach to parse the epub 3 file. I got the .opf file and parse it but the problem is there is no .ncx file. It has toc.xhtml file. It is the index file what I needed but in xhtml format. I am not sure if all files have same format or not. If all epub3 has same format than I can created a custom HTML parser according to my requirement.
Is there any efficient epub3 reader sample available for ios? I found one here but it contains errors and there is nothing mentioned for configuring it.
Any help please.
I know of two iOS EPUB3 readers these are iBooks and Gitden reader.
EPUB3 must contain a navigation file based on HTML5
See: http://www.heliconbooks.com/article/epub3navdoc
You can simply display this file as standard HTML file, however notice that this file must contain semantic tags like
There may be more then one section in each TOC file.
This file is pointed to by the OPF file, in the manifest section there should be one and only one item with property="nav"
In my Ipad application i need to read .pdf files. these pdf files are stored in my server. the size of the pdf files are nearly 20Mb. Normaly in ipad we can view the pdf using UIwebview, but it's not useful in this case. the reason is normaly in iPad the pdf files are downloaded and showed in UIWebview.. but in my case the size maters..so i need another solution to read pdf files.
my suggestion is take the pdf in a spitted fashion.means suppose ur pdf contains 1000 pages download first page and load on the webView and start download for the remaining pages in the background something like nsoperationquee .so you need to modify in the server side also if you like my suggestion.
You have pdf url that in server right? get the pdf files from the server and store it locally like DB. After that you can display the PDF files from the DB. This is the one time process.Then it not take much time for download.
Or you get the pdf images and display in the uiimageview its simple and easy. But one drawback is you can read the text but not do any action on that i.e., copy the text like that
Thanking you
I've got over 400 bookmarks saved as .webloc files. I'd like to move them to the iPhone's goodReader app. goodReader cannot open webloc files. It can sork with pdf, html but not webloc.
Do you know of a way or a program that would take a folder as its input, and convert every single .webloc file in it into a PDF version or a html version - so I can grab the converted files and move them onto iPhone.
Thank you
Try this, it should be able to convert the files to pdf http://files.macscripter.net/joy/files/webloc2pdf.zip
This is my first thread iam developing an application in which i have to convert the HTML contents to pdf file.
I had generate the PDF File but don't know how to create a pdf file from HTML format.
Anyone can suggest the solution?
Thank You.
First, are you sure that's really what you want to do? It's not as if an iPhone application can't display HTML if that's what's needed...
You can use a UIWebView to render the HTML into a pdf file as a bitmap: see
this discussion (HTML to PDF conversion library?).
In my iPhone application I'm generating an HTML file. I would like to convert that HTML file to a PDF file programatically. The PDF will then be attached to an email.
Does anyone know (have an example) how to convert the HTML file to a PDF?
maybe you should start from here: http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_pdf/dq_pdf.html
I don't know if this is what your looking for it helped me because it's much easier to generate a prepared html doc then PDF for me. I found a library that does that here http://maniacdev.com/2013/09/ios-library-for-easy-pdf-creation-from-an-html-string-or-URL