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'
spaceBelowLine='20'
/>
<style
name='field_content'
fontSize='16'
spaceAboveLine='20'
spaceBelowLine='20'
titleWidth='100'
/>
</styles>
<body>
<text class="h1" spaceAfter="10">
Employment Contract
</text>
<pageBreak/>
<text class="fineprint">
Here goes some legal fineprint
</text>
<field
title="Position"
type="line_right"
class="field_content"
height="5cm"
spaceBefore="1cm"
spaceAfter="1cm"
>
Chief Technology Officer
</field>
</body>
</adx>
Last updated
Was this helpful?