如何使用iphone sdk从PDF搜索字符串? [英] How to Searching String from PDF using iphone sdk?

查看:99
本文介绍了如何使用iphone sdk从PDF搜索字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个PDF阅读器应用程序,允许用户从PDF中搜索字符串。在webView中显示PDF的非常简单的想法,但我不知道我是否可以在UIWebView中显示的PDF中执行搜索?

I am trying to create a PDF Reader application allow user to search string from the PDF. The very simple idea for displaying the PDF in webView but I don't know whether I can perform search in the PDF displayed in UIWebView or not?

如果可行的话请为我提供任何好的教程。如果没有,那么我正在使用CGPDFDocumentRef和其他类的CoreGraphics。我完成了在没有UIWebView的情况下在UIView上显示PDF。我无法缩放但它正在显示。现在搜索我已经使用过本教程。 http://www.random-ideas.net/posts/42 。我能够搜索并获得字符串的bool值是否可用。但我没有得到如何突出显示PDF格式的搜索文本。

If this is possible then please provide me any good tutorial for this. If not then I am using CGPDFDocumentRef and other classes of CoreGraphics. I am done with displaying PDF on a UIView without having UIWebView. I am unable to Zoom yet but it is displaying. Now for searching I have used this tutorial. http://www.random-ideas.net/posts/42. I am able to search and getting a bool value for string is available or not. but I am not getting how to highlight search text in PDF.

如果可以使用任何一个,UIWebView或我使用CoreGraphics的方式,请帮助我。

Please help me if it is possible with any one, UIWebView or the way I am doing using CoreGraphics.

谢谢。

推荐答案

我想你会在这里找到足够的材料链接

I think you will find enough materials in this link

在iphone上渲染后,是否有任何框架可以突出显示pdf文件上的文字

这篇关于如何使用iphone sdk从PDF搜索字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆