I want to print a pdf file (iOS 8.1, AirPrint, Swift) directly to the printer. Printing is fine, but I get this message in Xcode:
2014-11-04 12:34:50.069 PrintApp[801:266564] -[PKPaperList matchedPaper:preferBorderless:withDuplexMode:didMatch:] paperToMatch= result= matchType=0
What does this mean?
This is my code:
let url: NSURL = NSURL(string:"http://www.sirup-shop.de/csv/test-paketlabel.pdf")!
let printInfo = UIPrintInfo(dictionary: nil)
printInfo.jobName = "Label"
let printController = UIPrintInteractionController.sharedPrintController()!
printController.printingItem = url
printController.printInfo = printInfo
printController.delegate = self
printController.printToPrinter(self.printer!, completionHandler: {
(controller:UIPrintInteractionController!, completed:Bool, error:NSError!) -> Void in
println("Label finished.")
})
Thanks a lot for you help.