tags:

views:

102

answers:

1

Hi Friends, I am working on the PDF App for iPad and facing an issue that,I want to search a text in PDF and also want to highlight that text but did not get any idea how to implement it. If any one of you know the exact idea please share it with me. Friends please help me it's urgent.

Thanks

A: 

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.

Yuji