XFA Specification
Chapter 2, Template Features for Designing Static Forms
Content Types
38
Edges — the sides of the box, described by
edge
elements
Corners — the intersections of the edges, described by
corner
elements
The border is rendered, starting at the top-left corner and proceeding clockwise, with the rendering
algorithm being applied for all edges. The direction of rendering is important for the notion of
handedness
and
edge
element rendering.
The border can also include a
fill
specification, indicating that the area enclosed by the border is to be filled
with some sort of pattern or other shading.
Fill
Any closed graphic can be filled. Closed graphics include the box model
border
, as well as some content
elements, such as
rectangle
and
arc
. The
fill
element indicates how the region enclosed by the
graphic is to be filled. Types of fill include:
None
Solid
Hatching and crosshatching
Stippling of two colors
Gradient fills:
Linear
Radial
The fill element has a child
color
element. One can often think of this as specifying the background color
for the fill. The fill element also has a child element specifying the type of fill, such as solid, pattern, and
stipple. This child, in turn, has its own child color element. This second color can often be thought of as the
foreground color. For example, the following would create a fill of horizontal black lines on a gray
background.
<fill>
<color
value="128,128,128"/>
<pattern
type="horizontal">
<color
value="0,0,0"/>
</pattern>
</fill>
Note:
The absolute omission or the presence of an empty fill element signifies solid white fill.
Content Types
With some exceptions, all data and graphic elements are represented within
value
elements, as shown in
the following examples. The content types are identified in bold. The exceptions are borders, which are
child elements of container elements, and barcodes, which can be compared to complex data types.
Example 2.2
Fixed content that describes a red-filled semicircle, enclosed in a border
<draw y="10mm" x="10mm" w="10mm" h="10mm">
<border/>
<value>
<arc sweepAngle="180">
Home Index Bookmark Pages
Pages: Home Index All Pages