I have a pdf document and would like to read only the headings of the individual pages of the pdf and output them in the console. Is there a way to do this using pdf box in Java