【问题标题】:What image size need to print a full A4 paper with UIPrintInteractionController?使用 UIPrintInteractionController 打印一张完整的 A4 纸需要多大的图像?
【发布时间】:2017-02-23 20:29:30
【问题描述】:

打印逻辑如下:

let printController = UIPrintInteractionController.shared
printController.printInfo = printInfo
printController.showsNumberOfCopies = false
printController.printingItem = image
printController.present(animated: true, completionHandler: nil)

什么尺寸的图片需要全部使用A4尺寸的纸?

【问题讨论】:

    标签: ios uiprintinteractioncntrler uiprintpagerenderer uiprintformatter uiprintinfo


    【解决方案1】:

    根据documentation语言环境选择的纸张大小。

    使用UIPrintInfoOutputGeneral 时,会选择美国信纸大小或 A4,具体取决于用户区域设置。

    【讨论】:

    • 您知道如何将 US Letter 更改为 A4 吗?需要更改用户区域设置?
    • 是的,您需要更改语言环境
    • 我将 (1) 匈牙利语 (2) 英语(英国)设置为语言
    • 它与系统语言环境有关,你是在模拟器上测试吗?
    • 不,在带有真实打印机的设备上。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-06-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-08
    • 2015-10-30
    • 1970-01-01
    相关资源
    最近更新 更多