title: How can I implement horizontal scrolling in a vertical pdf?
body: <p>I am trying to create a pdf viewing app in swift, with horizontal paging like an ebook reader.  I have been using a webview and setting pagination properties, but with no luck. Should i be using the UIWebView.scrollView properties instead?Here is my code:</p>
  
  <pre><code>class ViewController: UIViewController { 
  
      @IBOutlet var pdfWebView: UIWebView! 
  
      func showPdf(pdfName: String?, pdfView: UIWebView?) { 
          var pdfName: String! = "" 
          var pdfLocation: NSURL! = NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("\(pdfName)", ofType: "pdf")!) 
          let request: NSURLRequest! = NSURLRequest(URL:pdfLocation) 
          pdfView!.loadRequest(request) 
          pdfView!.paginationMode = UIWebPaginationMode.LeftToRight
          pdfView!.paginationBreakingMode = UIWebPaginationBreakingMode.Page
          pdfView!.pageLength = CGFloat(1000) 
          pdfView!.gapBetweenPages = CGFloat(5) 
      } 
      override func viewDidLoad() { 
          super.viewDidLoad()  
          showPdf("MVA", pdfView: pdfWebView) 
      } 
  }
  </code></pre>