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

GetNextPPDoc
Syntax
GetNextPPDoc(doc_index);
doc_index
index that identifies the previous document in the set of Documents sent to the output connector.
Description
Returns a counter index that identifies the next document in a set of documents in the post-processor job sent to the output connector.
Returns
num
0
-1
Example
$doc_index = GetFirstPPDoc();
while(Num($doc_index) > 0 )
{
   $invoice=GetPPMetadata($doc_index, "invoice_no");
   $doc_index=GetNextPPDoc($doc_index);
}
OpenText StreamServe 5.6 Updated: 2013-03-01