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
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"
hi im working on pdf manipulation.
my requirements are to edit the existing pdf document.
looks like there is no actual way to do it. i found out using javascript i can edit the html contents.
so now that my pdf is in uiwebview is there any way to convert pdf document to html content???
i have to do it programatically.
preferred language is objective c but its k if any suggestions in C/C++
thanks in advance
You will have to drop down to C if you want to do this. Basically you need to get hold of a CGPDFDocumentRef reference, and through that iterate each CGPDFPageRef. From the page you can get access to the CGPDFContentStreamRef.
From the content stream you can parse out the primitive data that is is PDF document. From there only a good understanding of the PDF document format can help you.
I would advice you to find a commercial tool, hire an experience contractor, or change your plan. What you have your sights on is allot of hard work.
I'm receiving a pdf that contains some data I would like to parse.
For example, there's an array with some integer data that I would like to parse for an automatic treatment.
I've looked at itext but the sample I've found are for writing pdf only.
Can someone give me an example of how to read through a pdf ?
Thanks in advance for any help.
Best regards
PdfBox is much better for reading text from a PDF file.
Finally,
I'm converting PDF to Word and I'm using Word interop :)
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?).
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.