Skip to main content

Move Frame based on xml attributes

Overview​

Use this rule to move a frame to a position defined by document XML attributes. A typical use case is adapting a template to different product table formats where the frame position is set by priint:planner document parameters.

User uploaded image

How It Works​

Reads the X and Y values in mm from the XML attributes named in gParam3 and gParam4. If either attribute is missing or empty, the rule exits without moving the frame.

In Absolute mode, moves the frame's reference point to the coordinates read from the XML attributes.

In Relative mode, adds the values to the frame's current position.

All values are interpreted as millimeters.

Reference​

#NameTypeDefaultDescription
1PositionDropdownAbsoluteAbsolute: move to the given coordinates. Relative: offset from the current position
2Reference PointDropdownTop LeftCorner used for absolute positioning. Options: Top Left, Top Right, Bottom Left, Bottom Right
3XString-Name of the XML document attribute holding the X coordinate or X offset in mm
4YString-Name of the XML document attribute holding the Y coordinate or Y offset in mm