background-macro attribute

Used By:body, pbr and the #page CSS elements
See:footer header rotate

The background-macro attribute specifies a macro to apply to each page first, before the content is applied. More flexible than header and footer, the macro is effectively a div covering the whole page (including the header and footer), and can be used to add anything from watermarks to hole-punch guides.

This places a "Confidential" stamp on each page, rotated at 45% counter-clockwise

  <macro id="watermark">
    <p rotate="-45" font-size="48pt">
<body background-macro="watermark">