'Convert pdf to text, remove the header, footers and images along with tables (python, Jupiter notebook or R)

I want to convert the pdf to text, but the catch here is that I only require the text and should exclude tables, images, header and footer. The pdf doesn't have a specific format. So can't implement the hard croping rules to remove the headers. (python, Jupiter notebook or R) Please if anyone can help me out.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source