CountPagesToVariable
Counts the number of pages in the document.
Syntax
bool CountPagesToVariable ()
Parameters
- Variable
- The variable that will hold the page count. If the input is a smart parameter syntax that specifies a variable, the value will be stored in that location. If the input is not a smart parameter, it will be treated as the name of the variable to use on the current DCO object.
Returns
Always True.Level
Document level.Details
This action will count the number of page objects that exist on the current DCO document object and write the result into the variable.
Example 1
CountPagesToVariable("MyVarName")
This example will place the count in a variable called "MyVarName" on the current document object. If the variable does not exist in the DCO, it will be created.
Example 2
CountPagesToVariable("@B.MyVarName")This example uses smart parameter syntax and will place the count in a variable called "MyVarName" on the batch level object. If the variable does not exist in the DCO, it will be created.