Style

The <style> tag within <styles> directly in the body allows you to create style classes you can reuse throughout the document. Each style needs to have an id so you can reference it later.

Example

<adx>
  <styles>
    <style
      name='fineprint'
      font='Courier'
      fontSize='9'
    />
    <style
      name='h1'
      fontSize='16'
      color='green'
    />
  </styles>

  <body>
    <text class="h1" spaceAfter="10">
      Employment Contract
    </text>
    <pageBreak/>
    <text class="fineprint">
      Here goes some legal fineprint
    </text>
  </body>
</adx>

Last updated