Design
Transform
Move items in a page on X or Y axis
ENTERPRISE FEATURE
Available for:
Carbone Cloud
Carbone On-premise
Embedded Carbone JS
v4.22.11+
Compatible with ODT, ODP, PPTX, and PDF files.
The feature is available only if the tag {o.preReleaseFeatureIn=4022011}
is used.
Overview
Some templates types (slideshow, presentation, drawing) uses items which are positioned in an absolute manner with a X or Y position relative to the current page, slide, paragraph, etc.
Carbone can move these items on X or Y axis with :transform(axis, unit)
formatter:
axis
can bex
ory
to move the item horizontally or vertically from its current position. Positive numbers = move to the right or bottom, Negative number = move to the left or top.unit
can becm
,mm
,inch
, orpt
.
This tag must be placed inside the item to move. It prints nothing by itself.
- in the alternative text of a shape, an image
- in the shape itself
if a loop is created between two shapes, the [i+1]
tag must be in the shape that is higher in the layer order than the shape with the [i]
tag.
PPTX example
Data
{
"pos" : 4
}
Template
Result