When opening the template in the editor, new page dimensions can be set and the template scales accordingly.
The following should be noted:
Templates should be created in the smallest possible format (if the transferred page dimensions are smaller than the default format of the template, problems may occur).
When scaling, the basic format should be retained, so a portrait format, for example, must not become a landscape format.
For limitations/specifications for scaling (of existing blocks in the template) the BlockSettings block-scaling (size, position, font) and block-scaling-keep-proportions are available
Block-scaling defines which scaling actions should be performed on a block:
For example, you can specify whether the size of a block should be scaled, but the position should be kept; or whether the font size of a text block should remain the same or be scaled accordingly.
This BlockSetting can be assigned as an attribute on the tag directly in the IDML for each individual block (comma-separated list of allowed actions), or defined as a BlockSettings Preset across templates (for text, asset or all blocks).
This BlockSetting ensures that blocks retain their proportions when scaled, regardless of the page dimensions passed. It is therefore generally recommended that templates that are to be scaled later are assigned a BlockSettings Preset that defines that asset blocks must always be scaled proportionally, and thus won’t be distorted.
In case of a transfer of non-proportional page dimensions, these blocks will then be scaled with the smaller scaling factor (of the new format).