• 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
Drawing to a PDF Context
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing to a PDF Context


  • Subject: Drawing to a PDF Context
  • From: Fabio Mancinelli <email@hidden>
  • Date: Tue, 27 Mar 2007 23:59:45 +0200

Dear all,

I am trying to do a very simple thing but I am stuck.

I have loaded a PDF and I have a CGPDFDocumentRef.
Now I want to draw a rectangle on a page of this document.

I start with creating a graphic context to draw to.

The CGPDFContextCreate requires a CGDataConsumerRef.

I suppose that I have to create such a consumer by using CGDataConsumerCreateWithCFData because the CGDataConsumerCreate requires that I provide callbacks to put bytes and, obviously, I don't know how to do it in the PDF format.

So now I need a CFMutableDataRef representing the PDF page and pass it to CGDataConsumerCreateWithCFData.

And here I am stuck... How do I retrieve a CFMutableDataRef from a CGPDFPageRef for creating a data consumer?

Thank you,
Fabio
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Prev by Date: Interface Builder, custom palettes, old nib files, and problems
  • Next by Date: Re: making a custom view not grab the keyboard
  • Previous by thread: Interface Builder, custom palettes, old nib files, and problems
  • Next by thread: Re: Drawing to a PDF Context
  • Index(es):
    • Date
    • Thread