Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.59 KB  |  hits: 36  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include "PSPDFKit.h"          // when using PSPDFKit-lib.xcodeproj (source code) -- or --
  2. #include <PSPDFKit/PSPDFKit.h> // PSPDFKit.framework (binary)
  3.  
  4.  
  5. // create the PSPDFDocument (container for one or multiple pdfs)
  6. NSString *path = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Sample.pdf"];
  7. PSPDFDocument *document = [PSPDFDocument PDFDocumentWithUrl:[NSURL fileURLWithPath:path]];
  8.  
  9. // open view controller
  10. PSPDFViewController *pdfController = [[[PSPDFViewController alloc] initWithDocument:document] autorelease];
  11. [self presentModalViewController:pdfController animated:YES];