UIPrintInteractionController, turn off Double-sided option?
ios, printing, uiprintinteractioncntrler
Solution
var duplex: UIPrintInfoDuplex
As per official documentation:-
If a printer is capable of duplex printing, a switch in the printing options allows users to toggle between single-side and double-sided printing. See the description of the UIPrintInfoDuplex constants for more information.
enum UIPrintInfoDuplex : Int {
case None
case LongEdge
case ShortEdge
}
none: No double-sided (duplex) printing; single-sided printing only.
UIPrintInfo *printInfo = [UIPrintInfo printInfo];
printInfo.duplex = UIPrintInfoDuplexLongEdge;
printController.printInfo = printInfo//printController is instance of UIPrintInteractionController
Problem
When using UIPrintInteractionController, it is easy to turn off the 'page range' and 'number of copies' options ``` UIPrintInteractionController *pic = [UIPrintInteractionController sharedPrintController]; pic.delegate = self; pic.printInfo = pif; pic.printFormatter = formatter; pic.showsPageRange = NO; pic.showsNumberOfCopies = NO; ``` Is there a way to TURN OFF the Double-sided option? Conversely, has anyone actually confirmed with Apple, that it is impossible to turn off the double sided option? If so thanks.