Presenting PDF files by yourself

09/04/2010 § 43 Comments


When it comes to present a PDF file, the first solution that comes to mind is to use the UIWebView.

And as everybody already knows, there are many ways to get weird results when displaying PDF files using the UIWebView on iPhone SDK 3.2 both in the iPad Simulator and the actual device.

There are basically three ways to avoid these results:

  1. To present the PDF file inside a HTML content
  2. To reload the web view when the app change it’s orientation
  3. To write your own PDF presenter

The first approach does not present the PDF file nicely. It does not scale the content accordingly to the screen size or orientation so that it fits perfectly, and we have to agree that it doesn’t feel like a native app.

« Read the rest of this entry »

Where Am I?

You are currently browsing entries tagged with PDF at iOS Guy.