Context capturing in a Structured PDF?
I'm wondering if this is really a machine learning problem.  If you can get to text out of the PDF then you should be able to do a lot with a rules-based text analysis algorithm.