---
title: "PDF Extract Text"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/pdf/pdfextracttext
markdown: https://docs.nodetool.ai/nodes/lib/pdf/pdfextracttext.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/pdf/pdfextracttext.md
---

# PDF Extract Text

**Type:** `lib.pdf.ExtractText`

**Namespace:** `lib.pdf`

## Description

Extract plain text from a PDF, preserving line breaks based on layout position.
    pdf, text, extract, read, content

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| start_page | `int` | First page (0-based) | `0` |
| end_page | `int` | Last page (-1 for all) | `-1` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `str` |  |

## Related Nodes

Browse other nodes in the [lib.pdf](./) namespace.
