> For the complete documentation index, see [llms.txt](https://docs.tailent.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tailent.com/actions/tap-actions/pdf/get-pdf-page-count.md).

# Get PDF Page Count

This action retrieves the total number of pages of a PDF document.

## Properties<br>

![](/files/r5Ku6lKZb2pbvsoK8erJ)

### ‌Input

![](/files/EnqnqxlzZ2EfstXfqWbU)

* **PDF File:** The filename for the PDF document which will be read.

### Output

![](/files/JcHetCUwJX80nrrmiQf1)

* **Output:** The variable which will be used to store the total number of pages.&#x20;

{% hint style="info" %}
**Note:** This variable must be an integer.
{% endhint %}

### Misc

![](/files/zqmAldQmEitZgM9fod8e)

* **Display Name**: action display name in your implementation project.
* **Wait Before**: number milliseconds robot to wait before executing the action.
* **Wait After:** number milliseconds robot to wait until moving to the next action.
* **Abort on Error**: True/False.
* **Retry Times**: Specifies the number of times to retry an action if it doesn't end successfully. Default value 0 (no retry); Use -1 if you want to retry indefinitely.

## **Use Case**

### **Potential Use Cases** <a href="#potential-use-cases" id="potential-use-cases"></a>

* Extract the total number of pages for every invoice.
* Extract the total number of pages for bank statements.
