I need to parse PDF data to extract the graphics objects within. I'm using the 
CGPDFScanner and associated API and it's so far working pretty well.

One of the things that is needed is to maintain a graphics state, etc as the 
PDF is parsed. I have two choices - roll my own or use a CGContext, which 
appears to have all the internal state I need as well as a complete API that 
very closely matches the actual PDF content (not coincidentally of course). And 
of course it's thoroughly debugged.

My question is, would using CGContext in this slightly unorthodox manner be a 
good idea? Would there be side effects? It does not need to ever actually do 
any rendering, I would just use it to track the graphics state. Anyone done 
this?

--Graham



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to