• 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
Parsing PDF Content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Parsing PDF Content


  • Subject: Parsing PDF Content
  • From: John Goodman <email@hidden>
  • Date: Wed, 10 Jan 2007 13:38:45 -0500

I'm using a CGPDFScanner object to parse PDF documents. I have a C program working that uses callbacks with the form:

void MyCGPDFOperatorCallback (
   CGPDFScannerRef scanner,
   void *info
);

Everything is fine, but now I want to fold the code into an existing C ++ application. I would like to have a pointer to a C++ object passed to the callback.

I see that Apple's callback has an "void *info" parameter. The documentation describes the pointer as "A pointer to data passed to the callback."

I could use the "void *info" parameter to pass a "this" pointer, but I don't see any way for me to set up this value. Can I set the pointer value myself? If so, how?

Thanks for the help.


_______________________________________________

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


  • Follow-Ups:
    • Re: Parsing PDF Content
      • From: David Duncan <email@hidden>
    • Re: Parsing PDF Content
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: Copying raw RGBA image data to NSBitmapImageRep coming out funny
  • Next by Date: Re: Parsing PDF Content
  • Previous by thread: Re: coredata: relationship between NSManagedObjectModel
  • Next by thread: Re: Parsing PDF Content
  • Index(es):
    • Date
    • Thread