寻找更好的方法来制作一种带有 iOS 3 的 PDF 阅读器+

发布于 2024-09-17 09:56:34 字数 544 浏览 4 评论 0原文

我正在尝试制作一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

神爱温柔 2024-09-24 09:56:34

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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文