简体   繁体   English

用iPhone阅读PDF

[英]PDF reading with iphone

I would like to know if there is a method to load pdf in a different way of using WebView. 我想知道是否有一种以其他方式使用WebView加载pdf的方法。 What I'm trying to do is a "book reader" where I can use the fancy "flipping page". 我正在尝试做的是一个“读书器”,在其中可以使用花哨的“翻转页​​面”。

Thank you. 谢谢。

You can always make your own parser and renderer, but it seems way too much work. 您始终可以创建自己的解析器和渲染器,但似乎工作量太大。 Perhaps you can attach a custom animation of a UIWebView, but I'm not sure how you'd paginate etc. 也许您可以附加UIWebView的自定义动画,但是我不确定如何分页等。

//Your best bet is to subclass PDFView to make your custom reader, in my opinion.

Edit: PDFView isn't available yet. 编辑:PDFView尚不可用。 But check out the sample code: QuartzDemo. 但是,请查看示例代码:QuartzDemo。 It uses transformations on a PDF that you perhaps could modify to do what you want. 它使用PDF上的转换,您可能可以对其进行修改以执行所需的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM