我的应用程序(在 iPad 上运行)正在生成 PDF,然后将其附加到电子邮件并发送给客户。但是,当我收到 PDF 时,Adobe 不会打开它。这是我得到的错误:
Acrobat 无法打开“Invoice 6020130304036.pdf”,因为它不是受支持的文件类型或文件已损坏(例如,它作为电子邮件附件发送并且未正确解码)。
我在我的开发环境(Mac)上创建了相同的 PDF,并且文件可以正常打开。
这是我正在使用的代码:
put specialFolderPath("documents") & "/Invoice " & tInvoice & ".pdf" into tPDFPath
open printing to pdf tPDFPath
print card "Invoice" of this stack from 340,0 to 1010,650 into 20,10,575,550
close printing
put tPDFPath into tAttachments["data"]
put "PDF" into tAttachments["type"]
put "Invoice" into tAttachments["name"]
mobileComposeMail tSubject, tTo, tCCs, tBCCs, tBody, tAttachments
有没有其他人遇到过类似的问题?
蒂亚,AA。