Re: Setting PDF document attributes with NSPrintOperation
Re: Setting PDF document attributes with NSPrintOperation
- Subject: Re: Setting PDF document attributes with NSPrintOperation
- From: Annard Brouwer <email@hidden>
- Date: Tue, 8 Nov 2005 23:01:12 +0100
Sorry to follow up on myself, it turns out that NSPrintOperation is a
class cluster, so the normal rules of engagement with subclassing and
improving behaviour don't work. *sigh* I've never liked class
clusters, they have to go.
In the meantime, it's time to fire up my raw C skills and edit the
PDF file directly...
Annard
On 8 Nov 2005, at 21:59, Annard Brouwer wrote:
I've been racking my brain and the documentation on how to set PDF
attributes when I want to save a view as PDF. Currently I'm
achieving this using the NSPrintOperation class and the resulting
PDF file is nice. However, I can't seem to find a way to set the
meta data attributes on the PDF file (and I can't use the PDFKit
because my code has to run on Panther as well).
The only Apple way I can find is by subclassing NSPrintOperation
and override -createContext and there using CGPDFContextCreate()
set the attributes. Is there a better way that anyone has tried?
Any caveats I need to be aware of?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden