你能从iPhone应用程序下载PDF格式的东西吗? [英] Can You Download Something as PDF from an iphone App

查看:91
本文介绍了你能从iPhone应用程序下载PDF格式的东西吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将iphone应用程序中的特定屏幕下载为PDF?我已经检查了iphone开发者门户网站和很多其他地方,但无法找到答案。我想要做的就是点击一个按钮,然后将该屏幕作为pdf下载并存储在某个地方。这可能吗?如果是这样你会在哪里储存它?

Is it possible to download a particular screen in an iphone application as a PDF? I have checked the iphone Developer portal and a lot of other places but couldnt find the answer. All i want to do is click on a button and that should download that screen as a pdf and store it in some place. Is this possible? If so where would you store it?

推荐答案

如果你将问题分成两个问题 - 答案很简单。

If you split your question in two questions - the answer is simple.

Q1)如何以编程方式(进入UIImage)截取屏幕截图?

Q1) how can i take a screenshot programatically (into UIImage)?

A1)如何以编程方式截取屏幕截图

Q2)如何将UIImage转换为PDF文件?

Q2) how can i convert a UIImage to PDF file?

A2)将UIImage转换为PDF文件

这篇关于你能从iPhone应用程序下载PDF格式的东西吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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