开发者

Search and Highlight text in PDF for IPad

I am workin开发者_运维知识库g on the PDF App for iPad and facing an issue: how to search a text in PDF and also how to highlight that text?


Yours is the same big problem I'm having. My understanding is that, currently on iOS 4.0, the main public API is CGPDF . It allows us to parse PDF, and with it we can search strings in it. See also this Quartz 2D document. It also allows us to render it on the screen using CGContextDrawPage. However, it's not yet possible to get the position of a text in the rendered image. (On OS X it's possible using PDFKit.)

So, I'm afraid that you need to implement the PDF spec yourself to get that info. I think GoodReader etc. is working very very hard to implement these.


I had the same trouble recently and then I found FastPDFKit. Have tested the package and it's working great.

http://mobfarm.eu/fastpdfkit

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜