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

GetCurrSegDoc
Syntax
GetCurrSegDoc();
Description
Returns an index that identifies the current document, in the current segment, in the set of documents sent to the output connector. The function can be used at the following post-processing scripting levels:
Before and after document, process and page.
Returns
num
-1
Example
$doc_index = GetCurrSegDoc();
$invoice=GetSegMetadata($doc_index, "invoice_no");
OpenText StreamServe 5.6 Updated: 2013-03-01