gpt4 book ai didi

objective-c - iOS和Airprint-切碎的打印PDF

转载 作者:行者123 更新时间:2023-12-01 16:55:06 25 4
gpt4 key购买 nike

我们编写了一个生成PDF的应用程序。

可以是:

  • UIDocumentInteractionController打开
  • 通过MFMailComposeViewController发送电子邮件
  • 或使用UIPrintInteractionController印刷

  • 前两个可以正常工作,但是在打印时,PDF的边缘被切掉了。

    每页的最佳尺寸是多少?我们按照 this example的大小进行调整,即612x792。

    如果发送到iBooks或通过电子邮件发送,则PDF看起来不错。打印时将底部切掉。

    最佳答案

    我最终使用612x774(高度小1/4英寸)作为页面大小。这似乎在普通打印机和照片打印机上都可以正常打印。

    关于objective-c - iOS和Airprint-切碎的打印PDF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12396478/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com