开发者

Programmatically call "Save to PDF..." Sheet [closed]

开发者 https://www.devze.com 2023-04-04 13:15 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I need to implement a feature that under a certain condition the "Save to PDF" Dialog shows up & the user can save their document to PDF. How is this achieved in Objective C,开发者_运维百科 C or C++ i.e in Mac OS X? (anyone of them is good).


In textedit, there's an option to save as PDF. So you might be able to find how to do it in the textedit source provided by apple.


You simply need to write a file which conforms to the PDF Specification from Adobe. (Now also an ISO Standard). Apple provides an API here.

0

精彩评论

暂无评论...
验证码 换一张
取 消