When you add items such as headers, footers, watermarks, backgrounds, and table of contents entries to a PDF document, you can specify style information for the text contained in those items. You specify style information by using the
StyledText element, which can be the child of a
Header,
Footer,
Watermark,
Background, or
TableOfContentsEntryPattern element.
A StyledText element contains as children one or more
p (paragraph) elements. The
p element can contain any (zero or more) of the following items:
Each of the rich text elements (
StyledText,
p,
b,
i,
span, and
leader) can have attributes that specify further information, as described in the next section.
Note: You should remove any unnecessary white space, including line feed and tab characters, from DDX elements that contain text. Unnecessary white space can result in unexpected line feeds or spaces. The
p,
b,
i,
span, and
DatePattern elements are used to display styled text. If only white space is required between two child elements, use the nonbreaking space entity number
  or the
Space element for the
DatePattern element and rich text elements. The
entity reference is not defined.