Skip to main content

Extract PDF Text

Extracts positioned text from all pages of a PDF file, returning lines and spans with coordinates, font info, and text content.

Category: Structured Data Files (Excel, JSON, PDF) · Group: Files · Activity name: ExtractPDFText

The ExtractPDFText activity in the designer

Example

outputVariable = ExtractPDFText("<filePath>")

Inputs

NameTypeRequiredDefaultDescription
PDF File PathstringYesPath to the PDF file to extract text from.

Outputs

NameTypeDescription
outputVariablejsonJSON object with extracted text data: - numPages: Total number of pages - pages: Array of page objects, each containing: - index: Page number (0-based) - lines: Array of { y, text } — full text lines - spans: Array of { x, y, endX, fontSize, font, text } — positioned text spans Access fields using: {{pdfText["pages"][0]["lines"][0]["text"]}} to get the first line of the first page.