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.
-Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://nemesys.dyndns.org Logiciels Nemesys Software laurent.daude...@verizon.net Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries On Oct 13, 2009, at 18:33, Aaron Tuller wrote: > Hi Laurent, > > At 5:23 PM -0700 10/13/09, Laurent Daudelin wrote: >> Maybe a dumb question but anybody knows what's happening behind the scene >> when you click "Save" in the dialog that is displayed after you choose "Save >> as PDF" from the print dialog? What magic is performed to have the printed >> document, in any application supporting printing, ending as a pdf file? > > Check out the section in: > > http://developer.apple.com/mac/library/releasenotes/Cocoa/AppKit.html > > called: > > New Support for "Save As PDFÅ " in NSDocument Printing (New since November > 2008 Seed) > > and check the source for TextEdit in /Developer/Examples on 10.6 as noted. > > Also, if you're on pre-Snow Leopard or not Document Based, check out > NSPrintSaveJob > > in: > > http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSPrintInfo_Class/Reference/Reference.html > > and then run the print operation without showing panels. > > -aaron > > _______________________________________________ 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