Converting HTML file to PDF file in Iphone - iphone

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?).

Related

Read Epub3 in ios app

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"

How to parse epub file content after unzipping it

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).

creating a full html file out of webloc in a batch mode

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

Converting .doc Format to Pdf file in iphone

How do i Convert .doc format to pdf file from iphone .
i Want same layout as .doc format.
i Tried with html format but did not get any success.
anyone suggest any solution would be appreciated.
Thank you.
Since you are creating a PD based on a DOC Docmosis might help. The cloud system can work from an iPhone as long as you are happy calling a web service.

Generate PDF from html file on iPhone

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