Skip to main content

Set_Parentpage

Overview​

Use this rule to assign a master page to the current page during document generation. This is useful when the master page depends on content or planning data rather than being fixed in the template.

How It Works​

Iterates all master pages in the document and finds the one whose name matches gParam1 (exact match). Applies it to the current page.

If the master page has different dimensions than the current page, gParam2 controls whether the page may be resized to fit.

Reference​

#NameTypeDefaultDescription
1MasterpageString-Name of the master page to assign (exact match)
2Resize pageboolfalseTrue allows the page to resize if the master page dimensions differ
3(unused)
4(unused)