• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Setting PDF document attributes with NSPrintOperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Setting PDF document attributes with NSPrintOperation
      • From: Annard Brouwer <email@hidden>
  • Prev by Date: Re: Understanding [NSTextview setInsertionPointColor:]
  • Next by Date: How does Cocoa identify itself to a web server?
  • Previous by thread: Re: Understanding [NSTextview setInsertionPointColor:]
  • Next by thread: Re: Setting PDF document attributes with NSPrintOperation
  • Index(es):
    • Date
    • Thread