title: iPad printing orientation problem
body: <p>I have an printing problem in my ipad app.
  The view which I want to print is in landscape mode, I want to print it in the portrait mode.</p>
  
  <p>I have <strong>HP B110A</strong> printer which supports AirPrint</p>
  
  <p>Following is my code for printing</p>
  
  <pre><code>NSData *dataFromPath = [NSData dataWithContentsOfFile:filePath];
  UIPrintInteractionController *printController = [UIPrintInteractionController  sharedPrintController];
  
  if(printController &amp;&amp; [UIPrintInteractionController canPrintData:dataFromPath]) {
          printController.delegate = self;
  
      UIPrintInfo *printInfo = [UIPrintInfo printInfo];
          printInfo.outputType = UIPrintInfoOutputGeneral;
      printInfo.jobName = [filePath lastPathComponent];
      printInfo.duplex = UIPrintInfoDuplexNone;
      printInfo.orientation = UIPrintInfoOrientationPortrait;
      printController.printInfo = printInfo;
      printController.printingItem = dataFromPath;
  
      [printController presentAnimated:YES completionHandler:completionHandler];
  
          //and some handler code here
  }
  </code></pre>
  
  <p>Now, even when I have set the print orientation as Portrait the print is appearing in landscape mode.</p>
  
  <p><strong>PS: My app is set to work in landscape mode only.</strong></p>