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 |

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:
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)