Parsing PDF Content
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