如何在目标c中将html数据转换为PDF [英] How to convert html data to PDF in objective c

查看:65
本文介绍了如何在目标c中将html数据转换为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在目标 c 中将 html 动态转换为 pdf.转换它的最佳方法是什么,以便它保持与 html 相同的外观.提前致谢.

I want to convert html to pdf dynamically in objective c. what is the best way to convert it, so that it maintains its look same as html. Thanks in advance.

普拉萨德.

推荐答案

UIGraphicsBeginPDFContextToFile 将帮助您创建一个显示您的网页内容的 PDF 文件.通读文档并创建您自己的解决方案,或者只是按照我找到的教程进行操作:

UIGraphicsBeginPDFContextToFile will help you to create a PDF file which shows your web content. Read through the documentation and create your own solution or just follow the tutorials I found:

这篇关于如何在目标c中将html数据转换为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆