开发者

Looking for the better way to make a kind of PDF reader w/ iOS 3+

开发者 https://www.devze.com 2023-01-13 12:28 出处:网络
I\'m trying to make an iPhone application which can read PDFs in full screen and follow links on PDFs, but I can\'t find the right way to do it.

I'm trying to make an iPhone application which can read PDFs in full screen and follow links on PDFs, but I can't find the right way to do it.

First, I tried to use an UIWebView to read the PDF file, but it doesn't work exactly as I wanted (I was not able to fix the link problem).

The sec开发者_如何学Pythonond solution was to use the Quartz API to read the PDF. I took a look at http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_pdf/dq_pdf.html, but i'm only able to print one page on the screen, and there is no way to jump to next pages.

Can someone help me ? I'm running out ideas :)

Thanks for your help


Quartz does not know how to change pages, click on links, etc. It only "draws" the PDF page you want - you will have to do all gestures by yourself (or use UIScrollView and such).

BTW, I guess your question is duplicated. Take a look at: Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?

0

精彩评论

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

关注公众号