DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

GetPosXViewHelper / GetPosYViewHelperΒΆ

These ViewHelpers provide the possibility to read the current position within the PDF document.

<pdf:text>This text will be rendered at position x={pdf:getPosX()} and y={pdf:getPosY()}</pdf:text>

It is possible to use these ViewHelpers to position elements relatively when used together with a math ViewHelper. The following example requires the extension vhs to be installed.

{namespace v=FluidTYPO3\Vhs\ViewHelpers}

<pdf:text posX="{v:math.subtract(a: '{pdf:getPosX()}', b: 15)}" posY="{v:math.sum(a: '{pdf:getPosY()}', b: 30)}">This text element is moved relatively</pdf:text>