---
layout: page
title: "Get Page Count"
node_type: "lib.pdfplumber.GetPageCount"
namespace: "lib.pdfplumber"
---

**Type:** `lib.pdfplumber.GetPageCount`

**Namespace:** `lib.pdfplumber`

## Description

Get the total number of pages in a PDF file.
    pdf, pages, count

    Use cases:
    - Check document length
    - Plan batch processing

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|----------|
| pdf | `document` | The PDF file to analyze | - |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `int` |  |

## Metadata

## Related Nodes

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

