We make pretty heavy use of Grobid at scite (https://scite.ai) to parse PDFs in order to extract and classify the citation contexts. A great piece of software and I think without it we would be hard pressed to do what we do.
I wrote something similar a while ago https://github.com/agrafix/grabcite — I was surprised how far you could get with just heuristics. The nice thing is that many academic papers are also available with their LaTeX source which avoids a lot of the structure guessing from PDFs.