Using CGContext as a graphics state object
Using CGContext as a graphics state object
- Subject: Using CGContext as a graphics state object
- From: Graham Cox <email@hidden>
- Date: Fri, 23 Aug 2013 21:46:32 +0200
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 (email@hidden)
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:
This email sent to email@hidden