Retrouvez les fichiers exemples en téléchargement direct
Document:
<DOCUMENT>
<PAGE>...</PAGE>
</DOCUMENT>
Page:
<PAGE type="..." name="..." page-width="..." page-height="..." margin="..." margin-top="..." margin-left="..." margin-bottom="..." margin-right="...">
<REGION>...</REGION>
</PAGE>
Attributes of page:
- type(required): type equals simple-page or repeatable-page. If the value equals repeatable-page then the XML page corresponds to one or several pages in INX file.
- name: page name.
- page-width: page width. The width of each page equals to width of the first page in XML document. The default value is 21 cm.
- page-height: page height. The width of each page equals to height of the first page in XML document. The default value is 29.7 cm.
- margin: page margin.
- margin-top: page margin on the top side.
- margin-right: page margin on the right side.
- margin-left: page margin on the left side.
- margin-bottom: page margin on the bottom side.
Region:
<REGION type="..." name="..." column-count="..." column-gap="..." extent="...">
<BLOCK>...</BLOCK>
<IMG>...</IMG>
<IMAGE>...</IMAGE>
<P>...</P>
<ARRAY>...</ARRAY>
<TABLE>...</TABLE>
</REGION>
Attributes of region:
- type(required): type equals body (the central part of the page), before (the header page) or after (the footer page). The region of type body is required in each XML document.
- name: region name.
- column-count: column count (only region of type body).
- column-gap: width of escape between 2 columns (only region of type body).
- extent: region height (only region of type before or after).
Block:
<BLOCK name="..." width="..." height="..." ax="..." ay="..." letter-spacing="..." line-height="..." font-family="..." font-size="..." color="..." backgorund-color="..." margin="..." margin-top="..." margin-left="..." margin-bottom="..." margin-right="..." keep-together="always" display-align="..." text-align="...">
<BLOCK>...</BLOCK>
<IMG>...</IMG>
<IMAGE>...</IMAGE>
<P>...</P>
<ARRAY>...</ARRAY>
<TABLE>...</TABLE>
<UL>...</UL>
</BLOCK>
Attributes of block:
- name: block name.
- width: block width.
- height: block height.
- ax: block origin X (top-left corner).
- ay: block origin Y (top-left corner).
- font-family: font family (ex: Arial).
- font-size: font size (ex: 12pt).
- color: font color (ex: cmyk(0,0,0,1)). The color is in CMYK.
- background-color: Background color of block (ex: cmyk(0,0,0,0.5)). The background color is in CMYK.
- margin: block margin (ex: margin="10pt 15pt 20pt 25pt").
- keep-together: if this attribute exists then the block cannot split (only for document multi-columns or page repeatable).
- display-align: Vertical justification (posible values are "center", "top" or "bottom").
- text-align: horizontal justification (posible values are "center", "left" or "right").
- line-height: size between 2 lines (height = line-height * font-size).
- letter-spacing: size between 2 character in percent.
Paragraph:
<P name="..." width="..." height="..." line-height="..." font-family="..." font-size="..." color="..." backgorund-color="..." margin="..." padding="..." padding-top="..." padding-right="..." padding-left="..." padding-bottom="..." display-align="..." text-align="..." reference-orientation="...">
Text
</P>
Attributes of paragraph:
- padding: padding of paragraph (ex: padding="2pt 0pt 1pt 2pt").
- padding-top: padding of paragraph on the top side (ex: padding-top="2pt").
- padding-left: padding of paragraph on the left side (ex: padding-left="2pt").
- padding-right: padding of paragraph on the right side (ex: padding-right="2pt").
- padding-bottom: padding of paragraph on the bottom side (ex: padding-bottom="2pt").
- reference-orientation: Orientation of paragraph (ex: reference-orientation="90"). The orientation equals 90°, 180° or 270°.
Image:
<IMG src="..." width="..." height="..." margin="..." margin-top="..." margin-left="..." margin-bottom="..." margin-right="..." padding="..." padding-top="..." padding-right="..." padding-left="..." padding-bottom="..." display-align="..." text-align="..." reference-orientation="..." />
or
<IMAGE src="..." width="..." height="..." margin="..." margin-top="..." margin-left="..." margin-bottom="..." margin-right="..." padding="..." padding-top="..." padding-right="..." padding-left="..." padding-bottom="..." display-align="..." text-align="..." reference-orientation="..." />
Attributes of image:
- src: Image path.
Array:
<ARRAY widths="..." width="..." height="..." border="..." border-bottom="..." border-top="..." border-left="..." border-right="..." border-color="..." border-style="..." border-width="...">
<ROW>...</ROW>
</ARRAY>
or
<TABLE widths="..." width="..." height="..." border="..." border-bottom="..." border-top="..." border-left="..." border-right="..." border-color="..." border-style="..." border-width="...">
<TR>...</TR>
<TABLE>
Attributes of array:
- widths(required): column widths (ex: widths="50pt,42pt,64pt").
- border: Array border (ex: border="1pt solid cmyk(0,0,0,1)"). The style equals solid, double, triple, dotted or dashed. The border color is in CMYK.
- border-top: Array border on the top side.
- border-left: Array border on the left side.
- border-right: Array border on the right side.
- border-bottom: Array border on the bottom side.
- border-style: Array border style.
- border-width: Array border width.
-
border-color: Array border color.
Remark:
Attributes border-left-style, border-left-color, border-left-width, border-top-style, border-top-color, border-top-width, border-right-style, border-right-color, border-right-width, border-bottom-style, border-bottom-color and border-bottom-width can be used.
Row:
<ROW height="..." width="..." border="..." border-bottom="..." border-top="..." border-left="..." border-right="..." border-color="..." border-style="..." border-width="...">
<COL>...</COL>
</ROW>
or
<TR height="..." width="..." border="..." border-bottom="..." border-top="..." border-left="..." border-right="..." border-color="..." border-style="..." border-width="...">
<TD>...</TD>
<TR>
Remark:
Attributes border-left-style, border-left-color, border-left-width, border-top-style, border-top-color, border-top-width, border-right-style, border-right-color, border-right-width, border-bottom-style, border-bottom-color and border-bottom-width can be used.
Column:
<COL height="..." width="..." colspan="..." rowspan="..." border="..." border-bottom="..." border-top="..." border-left="..." border-right="..." border-color="..." border-style="..." border-width="...">
<P>...</P>
<BLOCK>...</BLOCK>
<IMAGE>...</IMAGE>
<IMG>...</IMG>
<ARRAY>...</ARRAY>
<TABLE>...</TABLE>
<UL>...</UL>
</COL>
or
<TD height="..." width="..." colspan="..." rowspan="..." border="..." border-bottom="..." border-top="..." border-left="..." border-right="..." border-color="..." border-style="..." border-width="...">
<P>...</P>
<BLOCK>...</BLOCK>
<IMAGE>...</IMAGE>
<IMG>...</IMG>
<ARRAY>...</ARRAY>
<TABLE>...</TABLE>
<UL>...</UL>
<TD>
Attributes of row:
- colspan: columns spanned.
-
rowspan: rows spanned.
Remark:
Attributes border-left-style, border-left-color, border-left-width, border-top-style, border-top-color, border-top-width, border-right-style, border-right-color, border-right-width, border-bottom-style, border-bottom-color and border-bottom-width can be used.
List:
<UL bullet="..." bullet-font="..." distance-starts="..." label-separation="..." letter-spacing="..." line-height="..." font-family="..." font-size="..." color="...">
<LI>...</LI>
</UL>
Attributes of list:
- bullet: bullet for all list item.
- bullet-font: font family of bullet.
- distance-starts: this attribute specifies how far the left side of the label is distant from the left side of the body (by default, value equals 6pt).
- label-separation: this attribute specifies the separation between the right side of the label and the left edge of the body (by default, value equals 0pt).
List item:
<LI bullet="..." bullet-font="..." letter-spacing="..." line-height="..." font-family="..." font-size="..." color="...">
<P>...</P>
<BLOCK>...</BLOCK>
<IMAGE>...</IMAGE>
<IMG>...</IMG>
<ARRAY>...</ARRAY>
<TABLE>...</TABLE>
<UL>...</UL>
</LI>



