Extracting and tagging/labeling text from pdfs
Since the main goal is to extract headers(which has different characteristics from other text). It would be best to convert pdf to xml as you will get features like style,hpos,vpos for each text in the file.
To work with xml you can refer ElemenTree.