Re: "Save as PDF"?
Re: "Save as PDF"?
- Subject: Re: "Save as PDF"?
- From: Rob Keniger <email@hidden>
- Date: Wed, 14 Oct 2009 12:15:18 +1000
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 (email@hidden)
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:
This email sent to email@hidden