Skeleton PDF scraping code

Lots of stuff required to make this actually usable