How to identify all the headings/sub headings in a pdf


How can I get levels of Headings and sub Headings exists in the given PDF?

Now I wanted to Read and identify all the headings/sub headings in the pdf.

Please let me know is there a way?

Any help is appreciated

Thank you


Confidentiality Notice:  This transmittal is a confidential communication.  If you are not the intended recipient, you are hereby notified that you have received this transmittal in error and that any review, dissemination, distribution or copying of this transmittal is strictly prohibited.  If you have received this communication in error, please notify this office immediately by reply and immediately delete this message and all of its attachments, if any.