title: Swift UIPrintInteractionController .xlsx file
body: <p>When attempting to print a .xlsx file using UIPrintInteractionController. The preview is white. I have tried using NSData and NSUrl and both show a white preview and print a white blank page.</p>
  <pre><code>let printController = UIPrintInteractionController.shared
  let printInfo = UIPrintInfo(dictionary:nil)
  
  printInfo.outputType = .general
  printInfo.jobName = DocMakerInfo.fileName
          
  printController.printInfo = printInfo
  printController.showsNumberOfCopies = false
  printController.showsPaperOrientation = false
          
  let urlF = NSURL(string: DocMakerInfo.fileXLSXUrl)!
  print(urlF) -&gt; file:///Users/testUser/Documents/CT.xlsx
  printController.printingItem = urlF
  printController.present(animated: true, completionHandler: {_,_,_ in
      print(&quot;done&quot;)
  })
  </code></pre>
  <p><img src="https://i.stack.imgur.com/B2WH3.png" alt="blank page image" /></p>