# Elementname: `Transformation`

## Description

Manipulate an object's appearance by applying a matrix. See the PDF reference 4.2.2 Common Transformations and following.

Allowed attributes: matrix, origin-x, origin-y

Child elements: Barcode, Box, Circle, Frame, Image, Rule, Table, Textblock, Transformation

Parent elements: Frame, Overlay, PlaceObject, Position, Transformation

### Attributes

matrix (text, optional)

  The transformation matrix for the object. Expected is a space separated string of six values.

origin-x (text, optional)

  The origin for matrix transformation. Must be left, center or right or a number from 0 to 100 (0 = left, 100 = right).

origin-y (text, optional)

  The vertical origin for the matrix transformation. Must be top, center or bottom or a number from 0 to 100 (0 = top, 100 = bottom).

## Example

    <Record element="data">
      <PlaceObject>
        <Transformation matrix="1 0 0 1 72 -72">
          <Transformation matrix="1 0 0 0.5 0 0" origin-x="100">
            <Transformation matrix="1 1 -1 1 0 0">
              <Image file="_samplea.pdf" maxwidth="4" maxheight="4"/>
            </Transformation>
          </Transformation>
        </Transformation>
      </PlaceObject>
    </Record>

## See also

PlaceObject

# Commands

- A
- Action
- AddSearchpath
- AtPageCreation
- AtPageShipout
- AttachFile
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- Circle
- Color
- Column
- Columns
- Compatibility
- Contents
- Copy-of
- DefineColor
- DefineColorprofile
- DefineFontalias
- DefineFontfamily
- DefineTextformat
- Element
- Fallback
- Fontface
- ForAll
- Frame
- Grid
- Group
- Groupcontents
- HSpace
- Hyphenation
- I
- Image
- Include
- Initial
- InsertPages
- Italic
- Layout
- Li
- LoadDataset
- LoadFontfile
- Loop
- Makeindex
- Margin
- Mark
- Message
- NewPage
- NextFrame
- NextRow
- NoBreak
- Ol
- Options
- Otherwise
- Output
- Overlay
- PDFOptions
- Pageformat
- Pagetype
- Paragraph
- PlaceObject
- Position
- PositioningArea
- PositioningFrame
- ProcessNode
- Record
- Regular
- Rule
- SaveDataset
- SavePages
- SetGrid
- SetVariable
- SortSequence
- Span
- Stylesheet
- Sub
- Sup
- Switch
- Table
- TableNewPage
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Trace
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

Version: 3.8.0 | Start page | Command reference | Other language: German