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

Reply via email to