---
title: "PDF to Markdown"
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/pdftomarkdown
markdown: https://docs.nodetool.ai/nodes/lib/pdf/pdftomarkdown.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/pdf/pdftomarkdown.md
---

# PDF to Markdown

**Type:** `lib.pdf.ExtractMarkdown`

**Namespace:** `lib.pdf`

## Description

Convert PDF to Markdown, inferring headings from font size.
    pdf, markdown, convert, headings, structure

## 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.
