• GetPPMetadata – returns the value of a metadata for a specific document, for example the invoice number.
• GetSegMetadata – returns the value of a metadata for a specific document within the segment, for example the invoice number.
• GetPPDocProperty – returns the value of a specified property for a document, for example the number of logical pages in the document.
• GetEnvelNr – returns the envelope number that a document is included in.
• GetSegment – returns the segment number that a document and an envelope are included in.
• IsFirstPageInEnvelope – returns information about whether or not the current page is the first page in the envelope.
• NextPage – skips the rest of the current page and processes next page.
• NextProc – skips the rest of the current Process, and processes the next Process.
• NextDoc – skips the rest of the current document and processes the next document.
• NextSegment – skips the rest of the current segment and processes the next segment.
• InsertPage – inserts a page in the current document.
• FlushOutput – sends parts of the job to the output connector even if the job is not completed.
• SetDestPath – sets a destination path, and optionally, a file name.For more information on document sorting and bundling scripting functions, see the Scripting reference.$doc_index = GetFirstDoc();$PageCount = 0;while(num($doc_index) > 0){$PageCount = num($pageCount) + num(GetPPDocProperty($doc_index, "pages"));$doc_index=GetNextPPDoc($doc_index);}if(num($PageCount) > 5){$filename = "./out/big.pcl";}else{$filename = "./out/small.pcl";}
OpenText StreamServe 5.6 | Updated: 2013-03-01 |