The rectangle is defined by two opposite corners:
(x1, y1). The coordinates are in PDF
extractTextFromRect throws an error if text extraction is
prohibited by this PDF file.
See the "Setting parameters" section in the function list for settings that affect text extraction.
This function is identical to
extractTextFromRect except that it
takes points in PDF coordinate space.