Open the PDF file in an external application on the iPad.

I want my application to open the specified PDF file with an external user select application on the iPad. How can i do this? Or is there an open source open source PDF reader so I can put it in my application?

My position in more detail:

I'm going to port the iPad from OS X / rewrite from scratch for the iPad an application that manages many PDF files (journal articles, etc.), but I don’t want to write part of the PDF reader, because there are already a lot of good ones; I do not want to reinvent the wheel. (You can say that you should not invent applications for managing PDF documents, but I would like to make it as a front-end for SPIRES , and there are none yet.)

Since the application will be the front of serious reading activity, UIWebViewpdf is not enough. In addition, users of my application will have various settings that the application use.

This is the premise of my question. Thanks in advance!

+3
source share
3 answers

Here is my auto answer:

Use UIDocumentInteractionController. See this Apple document

Now the problem is to find a way to choose programmatically exactly which application you open the document with when several applications are available for the same file type.

+2
source

PDF UIWebView. 2D- Quarts, . , , .

Quarts 2D PDF

0

You cannot search inside PDF files. You cannot access the text. You could make an annotation, but at best it would be a hack.

0
source

Source: https://habr.com/ru/post/1740178/


All Articles