Script functions reference > Script functions in alphabetical order > I > InsertPages

InsertPages
Syntax
InsertPages(document_name, page_selector, strProcesslink);
document_name
page_selector
strProcesslink
The name of the process link. If not specified, the current process link is used if it is available, otherwise the default process link is used.
Description
Inserts selected pages in the output stream.
If ${<variable>} or $<variable> is used on the document_name document, it is replaced by the $<variable> value when the InsertPages function is called.
page_selector is a string with the following syntax:
 
*
2
1-3
3-1
1,3-4,6
 
*
The function can be used at the following post-processing scripting levels:
Before and after document, process and page.
Returns
0
num>0
Example
InsertPages("SummaryDocument","", "SummaryProcessLink");
InsertPages("SummaryDocument","1,3,7,2,4-5");
 
OpenText StreamServe 5.6.2 Updated: 2018-01-26