寻找更好的方法来制作一种带有 iOS 3 的 PDF 阅读器+
我正在尝试制作一个 iPhone 应用程序,它可以全屏阅读 PDF 并跟踪 PDF 上的链接,但我找不到正确的方法。
首先,我尝试使用 UIWebView
来读取 PDF 文件,但它并不能完全按照我想要的方式工作(我无法修复链接问题)。
第二种解决方案是使用 Quartz API 来读取 PDF。我看了一下 http://developer .apple.com/iphone/library/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_pdf/dq_pdf.html,但我只能在屏幕上打印一页,并且无法跳到下一页页。
有人可以帮助我吗?我的想法已经用完了:)
谢谢你的帮助
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 second 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Quartz 不知道如何更改页面、单击链接等。它只“绘制”您想要的 PDF 页面 - 您必须自己完成所有手势(或使用 UIScrollView 等)。
顺便说一句,我猜你的问题是重复的。看一下:快速而精益适用于 iPhone / iPad / iO 的 PDF 查看器 - 提示和提示?
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?