I'm trying to extract Text from a PDF using Python, and I have successfully done so using PyPDF2 like this:
from PyPDF2 import PdfFileReader
reader = PdfFileReader('path.pdf')
page = reader.getPage(0)
page.extractText()
This extracts all the Text from the Page, but I want to extract the text only from a Rectangular region of 3'x4' at the top-left part of the page.
I Basically want to do something like :How-to extract text from a pdf doc within a specific rectangular region? but in Python
Can this be done by PyPDF2 or by any other Python Library?