Skip to main content

Extract text from area

Read the text inside a rectangle of one page, e.g. an invoice number box that is not a form field.

Command in the PDF toolkit · id ooa.pdf/extract_area_text · 7 inputs (5 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
PathFileYesPDF file.
PageNumberNo11-based page number.
XNumberYesLeft edge of the area in points (72 per inch) from the left of the page.
YNumberYesTop edge of the area in points from the top of the page.
WidthNumberYesWidth of the area in points.
HeightNumberYesHeight of the area in points.
PasswordCredentialNoPassword for protected PDFs.

Outputs​

OutputTypeWhat it is
textStringText found inside the rectangle, trimmed.