Page breaks
Simple page break
A horizontal rule (---) is treated as a page break in the rendered document:
Explicit page break with orientation
Change page orientation with the explicit page break syntax:Example: Mixed orientations
Page sections
Page sections let you position content at specific vertical locations on a page. This is essential for title pages, certificates, and custom layouts.Syntax variant 1: Dash syntax
Syntax variant 2: Directive syntax
Vertical alignment
Absolute positioning with startY
Position content at an exact vertical position (in points from the top):Attribute reference
Example: Title page
Flow page assignment
Use---flow--- when a normal editable flow needs page-design metadata but no
column wrapper:
---columns---. See
Document Styling for
master-page and region definitions.
Example: Certificate
Columns layout
Create multi-column layouts similar to LaTeX two-column papers. Content flows automatically from one column to the next.Basic two-column layout
Three-column layout
With separator line
Add a vertical line between columns:Attribute reference
Example: Academic paper style
Semantic layouts
Semantic layouts place independently editable content side by side. Use them for summaries, image/text combinations, KPI rows, and other layouts where each column needs its own content. Unlike flowing columns, content never moves automatically from one semantic column into another.Layout attributes
Column
width accepts a fixed centimeter number, %, fr, or auto.
Columns can independently define verticalAlign, background, border, and
padding.
Fixed canvas
Canvas is intended for cover pages, certificates, title panels, and other deliberately fixed visual compositions. Item positions and dimensions are percentages of the canvas.canvasText: text, typography, colors, alignment, vertical alignment, paddingcanvasImage: source, alt text, fit, and focal pointcanvasShape: rectangle, ellipse, or line with fill and border styling
id, x, y, width, height, rotation,
opacity, and zIndex.
Pagination controls
Extended block elements can use the following attributes:
These map to native DOCX pagination where available and to equivalent print CSS
for HTML output.
