views:

560

answers:

3

I'd like to make my app to open a specified PDF by an external app of the user's choice on the iPad. How can I do that? Or, is there any open-source PDF reader framework available so that I can put it into my app?

My situation in more detail:

I'm thinking of porting to the iPad from OS X / rewriting from scratch for the iPad an app which manages lots of PDFs (journal articles, etc.), but I don't want to write the PDF reader part, because there are many good ones already out there; I don't want to reinvent the wheels. (You might say you shouldn't reinvent pdf management apps, but I'd like to make one as a front end to SPIRES, and there isn't one so far.)

As the app would be a front end to a serious reading activity, UIWebView's pdf capability is not enough. Also, users of my app would have various preferences which app to use.

That's the background behind my question. Thanks in advance!

A: 

Its not that hard to view PDFs without a UIWebView. You use some Quarts 2D drawing but a large majority of the work is done for you. You mainly have to choose how you will flip pages, and do pinch to zoom.

Quarts 2D PDF reference

jamone
Thanks for the comments, but I need to support a *superb* reading experience, because it's going to be used to read technical materials. Searching inside PDFs, annotating PDFs, etc. etc. At least I want it to be as capable as Preview.app on OS X. So I don't want to replicate all this.
Yuji
A: 

You aren't able to search inside of PDF files. You can't access the text. You could do annotation, but it would be a hack at best.

Sneakyness
A: 

Here's my self-answer:

Use UIDocumentInteractionController. See this Apple doc.

The problem now is to find a way to choose programmatically exactly with which app you open a document, when multiple apps are available to a same file type.

Yuji