我正在尝试在通过 drawLayer
呈现的 pdf 上搜索单词。谁能建议我应该如何在 pdf 上找到一个词以及该词在页面上的位置(坐标)?是否有可导入的免费框架或可用的库?在谷歌上花了更多时间后,我找到了一些样本来搜索 pdf 上的单词;这些是来自 github 的 fastsamplepdf,random ideas
我的作品
我看到了 fastsample pdf 代码;我只了解使用
+(MFDocumentManager *)documentManagerWithFilePath:
(NSString *)filePath;
和
-(NSString *)wholeTextForPage:
(NSUInteger)pageNr withProfile:(MFProfile *)p;
但我找不到它们是如何突出显示的。请任何人帮我解决这个问题。请发表一些建议。 谢谢。
最佳答案
引用
PDF Manipulation on iPhone SDK
Which are the pdf operators needed to do a search feature in a PDF in iphone sdk?
关于iphone - 在iphone上渲染后是否有任何框架可以突出显示pdf文件上的文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5335799/