UIPrintInteractionController, turn off Double-sided option?
Asked Answered
M

1

7

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;

enter image description here

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.

Marianomaribel answered 4/7, 2014 at 10:52 Comment(2)
I am having the same problem. It is really silly that the duplex option in UIPrintInteractionController doesn't work.Rodrigo
tyhanks @RodrigoMarianomaribel
N
4

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
Nurture answered 2/9, 2016 at 7:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.