The GetPageCount component count the number of pages from given pdf.



The GetPageCount component exposes the Control In, Control Out, Data In and Data Out ports by default.

Port Description
Control In Must be connected to the Control Out port of one or more components.
Control Out Can be connected to the Control In port of another component or the default end component.
Data In Specifies the location of PDF file.
Data Out Return the Page Count (Int 32) from the PDF file.


To edit the properties of the GetPageCount component, in the properties window, change the required property. Users can edit the following properties.

Property Description
Search Search for the respective property.
Delay After Execution Specifies the wait time (in seconds) after the action is performed.
Delay Before Execution Specifies the wait time (in seconds) before the action is performed.


Let us Consider an example


To Count the Pages from Pdf File:

  1. In the Toolbox, expand the Utilities and then expand the PDF.
  2. Drag the GetPageCount component and drop it on the Design surface.
  3. To specify the file location, double-click on FilePath and enter the location of the file.
  4. To Override the existing data source, right-click FilePath.
  5. Select Override and change the data source. !!!note To learn more about overriding the data source of the data port, refer the Override section.
  6. In the Toolbox, expand the General Category.
  7. Drag the show component and drop it on Design surface.
  8. Connect all Control ports and Data ports in the activity.
  9. In the toolbar, click Run.