5

I have been reading Apple's docs and they recommend using UIWebView. This is all well and good until you want to go to a page number and also search PDF's.

Is there any 3rd Party libraries, (free or paid) that do this at all?

As a minimum I need to be able to Search and goto a page number in a PDF.

I have looked and PDFKit is not available and the Quartz methods seem limited. This is obviously possible due to the amount of PDF readers available on the app store.

STW
  • 44,917
  • 17
  • 105
  • 161
Lee Armstrong
  • 11,420
  • 15
  • 74
  • 122
  • is app store approved this, if i use this with my application? https://github.com/mobfarm/FastPdfKit – sandy Jun 10 '11 at 13:45
  • 1
    Here's one PDF library for iOS: http://mobfarm.eu/fastpdfkit https://github.com/mobfarm/FastPdfKit – TomSwift Mar 08 '11 at 17:52

1 Answers1

3

It's possible to do all that just using the Quartz calls. Quartz is obviously C-based, so it takes a moment to adjust to the lack of square brackets, but functions are named clearly and it's not too hard to figure out. For example, you can use CGPDFDocumentGetNumberOfPages(), CGPDFDocumentGetPage(), and CGContextDrawPDFPage() to display a given page from a document. There's a nice explanation of searching a PDF here: Random Ideas

None of this is to say that a 3rd party framework is a bad idea -- if someone has already done the work to make this all easy, then great. But if you don't find something that suits you, don't be afraid to dig into Quartz -- it's not bad.

Caleb
  • 124,013
  • 19
  • 183
  • 272
  • The link has been moved to http://web.archive.org/web/20131122162015/http://blog.random-ideas.net/?p=184 – Haider Jan 02 '15 at 14:20