在iphone上渲染后是否有任何框架可以突出显示pdf文件上的文本 [英] Is there any framework to highlight text on pdf file after rendering on the iphone
问题描述
我正在尝试在通过 drawLayer
呈现的 pdf 上搜索一个单词.任何人都可以建议我应该如何在 pdf 上找到一个单词以及该单词在页面上的位置(坐标)吗?是否有任何可以导入的免费框架或任何可用的库?在谷歌上花了更多时间后,我找到了一些样本来在 pdf 上搜索一个词;这些是来自 github 的 fastsamplepdf,随机想法
I am trying to work on searching a word on the pdf which is rendered through the drawLayer
. Can any one suggest how I should find a word on a pdf and the position (co-ordinates) of the word on the page? Is there any free framework to import or any libraries available? After spending more time with google I found some samples to search a word on pdf; those are fastsamplepdf from github, random ideas
我的工作
我看到了fastsample pdf代码;我只理解使用
MY WORK
I seen fastsample pdf code; I understood only the parsing of the pdf to text using
+(MFDocumentManager *)documentManagerWithFilePath:
(NSString *)filePath;
和
-(NSString *)wholeTextForPage:
(NSUInteger)pageNr withProfile:(MFProfile *)p;
但我找不到它们是如何突出显示的.请任何人都可以帮我解决这个问题.请发表一些建议.谢谢.
But I can't find how they are highlighted. Please can any one help me out with this. Please post some suggestions. Thank you.
推荐答案
参考
iphone sdk 中的PDF 中的搜索功能需要哪些pdf 运算符?
这篇关于在iphone上渲染后是否有任何框架可以突出显示pdf文件上的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!