Printer Offline: No Error Message Received for Print Job Submission

Environment→ ・Device: iPad 9th generation ・OS:**iOS17.5.1 ・Printer model:EPSON PX-S730

Current issues→ An error message is not returned from the printer if a print job is sent while the printer is off.

Problem Description→ The AirPrint feature on an iPad 9th generation running iOS 17.5.1 is being used with an EPSON PX-S730 printer. When sending a print job while the printer is off, the Print Center shows the ongoing printing job, but the printing cannot be executed because the printer is off.

What I want→ I would like an error to be returned when I submit a printing job while the printer is off.

Test code:

Note: printController.print response is completed but Print Center status is printing

let printInfo = UIPrintInfo(dictionary: nil)
printInfo.jobName = "Print Job"
printController.printInfo = printInfo
let pdfURL = Bundle.main.url(forResource: "sample", withExtension: "pdf")!
printController.printingItem = pdfURL
let printer = UIPrinter(url: printerUrl)
printController.print(to: printer, completionHandler: { [self] printController, completed, error in
  if(error != nil){
    print("error"). 
  }else if completed{
    print("completed"). //this scenario handles completion response
  }else{
    print("cancel")
  }
})
Printer Offline: No Error Message Received for Print Job Submission
 
 
Q