extracts the text from the pdf file, returning the same within an array where the index is the number of the page that belongs content.