-1

Possible Duplicate:
Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?

Can anyone please point me the right direction. I want to be able to view pdf files on the iPhone and I don't no how to do this. So any tutorials would be great.

I have already done it in a UIwebView. But i am wanting to be able to 'Go to page', 'Print' and 'Email file' can this be done in a UIWebView? if not that's when I want to have the tutorials.

Community
  • 1
  • 1
Popeye
  • 11,839
  • 9
  • 58
  • 91
  • 1
    Quite annoyed that this has been marked as duplicate as it turns out its not. At least the one it has been marked a duplicate of it isn't. – Popeye Feb 05 '12 at 16:45

3 Answers3

4

As already pointed you can display pdf files in standard UIWebView control. Also iOS supports PDF rendering with quartz functions (e.g. see CGPDF... family of functions and CGContextDrawPDFPage function)

You can also check this sample to see how to draw PDF using those functions.

Vladimir
  • 170,431
  • 36
  • 387
  • 313
  • 1
    +1: Typing in `PDFView` in the Xcode Developer Documentation immediately put up this example. It took me not more than 10 seconds. – v1Axvw Dec 22 '11 at 14:53
0

Quick and dirty version would probably be using a UIWebView.

Grady Player
  • 14,399
  • 2
  • 48
  • 76
0

If you can spend some amount you can get PDF lib for iOS, like FastPdfKit. There are couple of others which will help as well. CGContextDrawPDFPage is a royal pain because you have to parse all the link and other stuff for interaction. If you just want to show use UIWebView.

AAV
  • 3,785
  • 8
  • 32
  • 59