On 14/10/2009, at 12:02 PM, Laurent Daudelin wrote: > Thanks, Aaron. I'll check out the links you mention. But I'm wondering what's > happening in general, in all applications, what is the process of drawing an > NSView, NSText and so on to end up with a PDF document, not from my own > application perspective. In other words, would it be possible to instruct a > given application to print a document to a PDF file automatically, without > intervention from the user? The functionality is there as you can do it from > the print dialog, but I'm wondering if it can be programmatically be done.
PDF is a fundamental part of the Mac OS X Quartz drawing architecture. If you draw something to a view, you can get a PDF representation of it. Have a look at the -dataWithPDFInsideRect: method of NSView. -- Rob Keniger _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com