context
In a Control Script, the context
object represents the Print context.
Field | Type | Description |
---|---|---|
sections | Array |
Array of sections (see section) in the Print context. Note: |
type | ContextType |
The context type: PRINT. |
Function | Description |
---|---|
query(selector) | Runs a query across all sections in the Print context. This function is only available in Post Pagination Scripts, which are only applied to the Print context. See Post Pagination Scripts. |
Example
This script includes and excludes certain Print sections from the output.
Copy
merge.context.sections['Section 1'].enabled = false;
merge.context.sections['Section 2'].enabled = false;
merge.context.sections['Section 3'].enabled = true;