Howto rotate pdf within webview

I have a webview showing a pdf page. How can i rotate the pdf by 90 degrees, so it is shown correctly ?


If you only have to display that PDF and nothing else on the web view, you could rotate the entire web view.

- (void)viewDidLoad {
    [super viewDidLoad];

    webView.layer.anchorPoint = CGPointMake(0.0, 0.0); = CGPointMake(CGRectGetWidth(self.view.bounds), 0.0);

    CGAffineTransform rotationTransform = CGAffineTransformIdentity;
    rotationTransform = CGAffineTransformRotate(rotationTransform, DegreesToRadians(90));
    webView.transform = rotationTransform;

Need Your Help

"Type 'Any' has no subscript members" error on Alamofire 4.0

ios json swift alamofire

I am using Alamofire 4.0 with Swift 3.0 and I am using the following code to parse the JSON:

Getting an error running mongo shell command via bash

bash mongodb

I am working on Solaris 10, with mongo version 2.0.4 ,