--- title: "Get PDF Page Count" slug: "get-pdf-page-count" updated: 2023-07-17T20:23:06Z published: 2023-07-17T20:23:06Z canonical: "documentation.decisions.com/get-pdf-page-count" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Get PDF Page Count | Step Details | | --- | | **Introduced in Version** | 8.13.0 | | **Last Modified in Version** | 8.13.0 | | **Location** | Data > PDF | The Get PDF Page Count step is designed to retrieve the total number of pages contained within a PDF file. By inputting a specific PDF file, the step efficiently analyzes the document's content and returns accurate page count information. This enables users to obtain essential page-related data programmatically and utilize it for various purposes, such as document processing, pagination, or generating reports. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | PDF | PDF file to retrieve the page count of. | FileData | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | GetPDFPageCount1_Output | The count of pages within the PDF input. | Int32 | --- ## ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2023-07-17_16h06_50.png) --- ## Common Errors ### Value cannot be null If the PDF File input is not specified, the step will result in the following error; please ensure the step is mapped correctly. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get PDF Page Count 1[GetPdfPageCount] in flow [Display Steps]: Exception invoking method GetPdfPageCount on class PdfManagementSteps ---> DecisionsFramework.LoggedException: Exception invoking method GetPdfPageCount on class PdfManagementSteps ---> System.ArgumentNullException: Value cannot be null. (Parameter 'pdfDocument' at DecisionsFramework.Design.Flow.CoreSteps.StandardSteps.PdfManagementSteps.GetPdfPageCount(FileData pdfDocument at InvokeStub_PdfManagementSteps.GetPdfPageCount(Object, Object, IntPtr* at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) ```