在Iphone中将HTML文件转换为PDF文件

问题描述:

这是我第一个开发应用程序的线程,我必须将HTML内容转换为pdf文件。

This is my first thread iam developing an application in which i have to convert the HTML contents to pdf file.

我生成了PDF文件,但没有知道如何从HTML格式创建pdf文件。
任何人都可以建议解决方案吗?

I had generate the PDF File but don't know how to create a pdf file from HTML format. Anyone can suggest the solution?

谢谢。

首先,你确定这真的是你想要做的吗?如果需要的话,iPhone应用程序不能显示HTML ...

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

您可以使用UIWebView将HTML呈现为pdf文件作为位图:请参阅
此讨论(HTML到PDF转换库?)一>。

You can use a UIWebView to render the HTML into a pdf file as a bitmap: see this discussion (HTML to PDF conversion library?).