Script functions reference > Script functions in alphabetical order > G > GetDocSheetCount

GetDocSheetCount
Syntax
GetDocSheetCount();
Description
Returns the number of sheets within the current document. You can only call this function after enveloping. Inserts are not included in the returned value. The function can be used at the following post-processing scripting levels:
Before and after document, process and page.
Returns
The number of sheets within the current document.
Example
$sheet_count = GetDocSheetCount();
Result:
$sheet_count = 2
OpenText StreamServe 5.6 Updated: 2013-03-01