title: Extract text from pdf by format
body: <p>I am trying to extract the headlines from pdfs.
  Until now I tried to read the plain text and take the first line (which didn't work because in plain text the headlines were not at the beginning) and just read the text from a region (which didn't work, because the regions are not always the same).</p>
  
  <p>The easiest way to do this is in my opinion to read just text with a special format (font, fontsize etc.). 
  Is there a way to do this?</p>