---
title: "text.listParagraphs: List paragraphs — PDF kit command — Kition"
description: "The paragraphs on a page (lines grouped by font, size, alignment and spacing): number, text, its line numbers, box (top-left-origin points), font and size. Use the number with text.edit's paragraph."
canonical: "https://developer.kition.ai/docs/kits/pdf/commands/text.listParagraphs"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/pdf/commands/text.listParagraphs](https://developer.kition.ai/docs/kits/pdf/commands/text.listParagraphs)

# text.listParagraphs

**List paragraphs.** The paragraphs on a page (lines grouped by font, size, alignment and spacing): number, text, its line numbers, box (top-left-origin points), font and size. Use the number with text.edit's paragraph.

- Kit: PDF 0.1.0 (.pdf); reference: [PDF kit commands](https://developer.kition.ai/docs/kits/pdf.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `page` | `integer` | yes | (minimum 1) |

## Call through pdf_run

```text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "text.listParagraphs", "params": { "page": <integer> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. pdf_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `count` | `number` | no |  |
| `page` | `number` | no |  |
| `paragraphs` | `any[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "count": {
      "type": "number"
    },
    "page": {
      "type": "number"
    },
    "paragraphs": {
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "page": {
      "description": "(minimum 1)",
      "type": "integer"
    }
  },
  "required": [
    "page"
  ],
  "type": "object"
}
```

Generated from the command list of @kition/pdf-darwin-arm64@0.1.0 and the kit itself (pdf_commands through @kition/cli@0.1.1, built from KitionAI/kition-pdf@b0d2725).
