开发者

How to convert a PDF to a PNG in IOS programmatically

I am developing an iPhone application to display large image(s) and PDF(s). The PDF and images are available for web dow开发者_Python百科nloading or through iTunes importing.

I am using a tiling approach where after the download/import a set of PNG/JPEG tiles are programmatically generated and saved to the iPhone.

Looking previous questions I found a way to do tiling for large images, but it does not work with PDF files?

I wonder if it is possible to convert the PDF file into a PNG/JPEG before running the tiling routine, or if there are better approaches to do this.


You can create an image object, create a graphic context for the image, render the PDF page in the image's graphic context and then save the image.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜