title: Get the Job Status of UIPrintInteractionController in Swift
body: <p>I have a problem: I want to know the status of the print job. I'm printing out a PDF file which is temporarily stored in a cloud drive. I want to delete that file after the print job is done. How can I realize this in swift?
  Here is a snippet of my code:</p>
  
  <pre><code> // 1
      let printController = UIPrintInteractionController.sharedPrintController()
      // 2
      let printInfo = UIPrintInfo(dictionary:nil)
      printInfo.outputType = UIPrintInfoOutputType.General
      printController.showsNumberOfCopies = false
      printController.showsPageRange = false
      printInfo.jobName = "PDF ID: " + pdfObjectID
      printController.printInfo = printInfo
  
      // 3
      //let formatter = UIMarkupTextPrintFormatter(markupText: "Test")
      let formatter = pdf.viewPrintFormatter()
      formatter.contentInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
      printController.printFormatter = formatter
  
      // show PrintController
      printController.presentAnimated(true, completionHandler: nil)
  </code></pre>
  
  <p>Do you have any suggestions? 
  Thanks :)</p>