Setting PDF document attributes with NSPrintOperation
Setting PDF document attributes with NSPrintOperation
- Subject: Setting PDF document attributes with NSPrintOperation
- From: Annard Brouwer <email@hidden>
- Date: Tue, 8 Nov 2005 21:59:23 +0100
Hello everybody,
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?
Thanks!
Annard
_______________________________________________
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