Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use the iPhone's built-in PDF viewer to display a document

Tags:

pdf

iphone

I would like to create an application that downloads a PDF document from the Internet, and displays it to the user. I would like to re-use the iPhone's builtin PDF viewer that is used throughout the core apps to view a PDF document.

Is there a way to do that?

like image 774
jpm Avatar asked Nov 07 '08 13:11

jpm


People also ask

Does iPhone have a built in PDF reader?

In the Books app , you can open and save PDFs that you receive in Mail, Messages, and other apps.

Why can't I see a PDF file on my iPhone?

If you're trying to open a PDF on an iPad or iPhone and it appears blank, you need to set Adobe Reader as your default for opening PDF files on your device. 💡Tip: Select the Preview icon to quickly preview PDFs without downloading them.


2 Answers

You could just use UIWebView class to do that.

like image 113
leonho Avatar answered Sep 29 '22 09:09

leonho


Try this: https://github.com/vfr/Reader

like image 21
fvisticot Avatar answered Sep 29 '22 10:09

fvisticot