[dynTemp] Enlarge first repeating element
Overview
This rule enlarges the first repeating element of a multiframe to fill the entire multiframe area.
How it works
Because a multiframe only loads items that fit within its current area, the rule must temporarily expand it. The rule:
- Records the current bounding box of the multiframe.
- Expands the multiframe to page size to ensure at least the first element is loaded.
- Builds the placeholder to resolve repeating elements.
- Collects the built elements.
- Restores the multiframe to its original size and position.
The rule then takes the first repeating element (index 0). This element must have exactly one frame. If it has more than one frame, the rule returns an error and does not execute.
The single frame of the first element is resized to the full width and height of the multiframe area. The image inside the frame is then fit to the new size. Finally, the frame is moved to the position of the multiframe.
Parameters
This rule has no configurable parameters.