本文介绍了新手想要为ipod touch创建一个PDF阅读器 - 最好的方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个显示PDF的小应用程序,显示具有上一页下一页功能的可缩放单页。

I want to make a small app that displays a PDF, presenting zoom-able single pages with a previous-next page function.

推荐答案

Core Graphics API在Cocoa和Cocoa touch中几乎相同。阅读,它应该为您提供渲染PDF页面所需的一切。您无需阅读PDF规范或使用库直接解析PDF文件。您可能需要了解有关Core Graphics / Quartz 2D /等的更多信息,以了解如何在Cocoa应用程序中使用这些函数。

The Core Graphics API is pretty much the same in Cocoa and Cocoa touch. Read up on CGPDFDocument, it should provide you with everything you will need to render PDF pages. You won't need to read the PDF spec or use a library to parse PDF files directly. You will probably to learn more about Core Graphics / Quartz 2D / etc. to understand how to use those functions inside of a Cocoa app.

这篇关于新手想要为ipod touch创建一个PDF阅读器 - 最好的方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 22:17