PDF: Read lines
PDF: Read lines
Reads a PDF document and returns its content split into lines, based on a configurable line height. It lets you process the PDF text line by line.
Options
Path to model
Enter the full path of the PDF file to read. Example: C:\Desktop\documento.pdf.
Row height in pixels
Enter the height in pixels that defines how text lines are grouped in the document. This value determines how the text is split into lines while reading.
Returns
Javascript code
js
actions["action-id"].lines // lines of the document (List)
actions["action-id"].content // full content of the document (Text)
Field selection
- lines — lines of the document (List)
- content — full content of the document (Text)
Rules and Conditions
- The Path to model field is required.
- The line height value affects the precision of the text split — adjust it to the PDF.
- Image-based PDFs need OCR for text extraction; this action works with PDFs that contain native text.