I have set the following code:
let printInfo = NSPrintInfo.sharedPrintInfo
let textPrint = NSPrintOperation(view: theTextView,printInfo: printInfo())
Now I would like to set the orientation to Landscape, but I can't find any Swift functions that do this.
Try this: