code to extract from starting word to the ending word in pdf.
for example in the below part of pdf file i wan to extract para from Jana-gana to jaya jaya jaya jaya he...
(1) The composition consisting of the words and music of the first stanza of
the late poet Rabindra Nath Tagore’s song known as “Jana Gana Mana” is
the National Anthem of India. It reads as follows: -
Jana-gana-mana-adhinayaka jaya he
Bharata-bhagya-vidhata
Panjaba-Sindhu-Gujarata-Maratha
Dravida-Utkala-Banga
Vindhya-Himachala-Yamuna-Ganga
uchchala-jaladhi-taranga
Tava Subha name jage, tave subha asisa mage,
gahe tava jaya-gatha.
Jana-gana-mangala-dayaka jaya he
Bharata-bhagya-vidhata.
Jaya he, Jaya he, Jaya he,
jaya jaya jaya jaya he.
The above is the full version of the Anthem and its playing time is
approximately 52 seconds.