Set page dimensions
When opening the template in the editor, new page dimensions can be set and the template scales accordingly.
Template requirements
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
Setting block-scaling
Block-scaling defines which scaling actions should be performed on a block:
size
position
font
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).
Setting block-scaling-keep-proportions
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).
If the image block is to be scaled disproportionately (analogous to the transferred values of the new format), but the image content (asset) is not to be distorted, this can be implemented by the setting asset-fill-block: true. Additionally, the attributes h-align and v-align can be used to define how the image should be placed in the block.
Scalable elements in format size
If there are elements in the template that are to be scaled exactly to the new format size (e.g. die cut), these must not be located directly at the bleed edge in the IDML file, but must be minimally reduced. (e.g. template format: 10x10 mm > block size: 9.99x9.99 mm; center-aligned).
Define safety distance
To prevent cutting tolerances from trimming important images and texts, it may be important to maintain a safety margin in the design. This can be displayed, for example, as a (non-printable) shape in the editor. To ensure that it behaves correctly when new page dimensions are set, the BlockSetting block-scaling-keep-distance (boolean) is added to the tag.
This determines that a block will always maintain the same distance from the format edge (regardless of the original size). That is, the block will be scaled analogously to the page dimensions passed.