将UIImage转换为PDF文件 [英] Converting UIImage into PDF File

查看:126
本文介绍了将UIImage转换为PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在PDF文件中保存UIImage。
我该怎么做?我将如何保存并成像为pdf文件然后导出该pdf文件?
请为我面临的问题提出解决方案。

Iam trying to saving an UIImage in PDF file. How can i do this? How i would save and image into pdf file and then export that pdf file? Please suggest the solution for the issue i faced.

谢谢。

推荐答案

我的理解是你要创建一个 CGPDFContext ,将UIImage绘制到其中,并将其保存到文件中。但是,我自己并没有这样做。

My understanding is that you'd create a CGPDFContext, draw your UIImage into it, and save it to a file. Haven't done that myself, though.

这篇关于将UIImage转换为PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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