can someone give me an idea how to extract information for text such as invoice bills using natural language processing
You might be looking for regex. With this you can parse the text based on your specified search patterns.

Some info:
https://en.wikipedia.org/wiki/Regular_expression

With python you can follow this documentation in order to build your regex expressions:
https://docs.python.org/3.8/library/re.html