Programmatically call "Save to PDF..." Sheet [closed]
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.
精彩评论