/*Hi Everyone,
I have a PDF file which has some bold side heading(visually bold. Not capital letters). The paragraphs in between the headings are considered as the sections.
I am searching for a particular word in the PDF. If any section has that particular word, I want to display the entire section along with heading. I think that can be achieved by using the newline line character logic. But, the text extracted from the PDF is unnecessarily retrieving the extra spaces, newline characters. So the logic is missing.
Can anyone help with this situation? */