Fixed layout, flow layout and regions
The two layout models and the header, body and footer regions. Canvas and workspace in the DocStudio designer interface.
DocStudio documents combine two layout models.
Flow layout (the default)
Elements are placed one after another by their container. A stack places them in a column, a row in a line, a grid in columns. The body is a flow container. Text wraps, tables grow with their rows and content moves to the next page when it does not fit. Flow layout is what you want for reports, invoices and any content whose length depends on data.
Fixed layout (inside fixed regions)
A fixed region is a box with a set size in millimetres. Its children are placed at exact positions with a frame (x, y, width, height, optional rotation and stacking order). Nothing moves when other content changes. Fixed layout is for certificates, labels, forms, stamps and any design where the exact position is the point.
| Flow | Fixed | |
|---|---|---|
| Position decided by | The container | The frame |
| Wraps and grows | Yes | No, the region has a set size |
| Exact coordinates | No | Yes, in millimetres from the physical left and top |
| Page breaks | Content moves to the next page | The region is one box and is not split |
| Resize handles | No (set width and height) | Yes |
Frames are only valid directly inside a fixed region. A frame on another element is ignored by the renderer. You can nest flow containers inside a fixed region, and fixed regions inside flow containers.
Page regions
A page has three regions:
| Region | Content | Where it prints |
|---|---|---|
| Header | Elements repeated at the top of every page. Has a height in millimetres | Screen: inside the sheet. Print and PDF: in the top margin |
| Body | The main content | The page area |
| Footer | Elements repeated at the bottom of every page. Has a height | Screen: inside the sheet. Print and PDF: in the bottom margin |
A header or footer is created when you first insert something into it. Its height defaults to 20 mm and can be changed in the Page regions group of the page settings.
The page mode setting
The page settings contain a mode (flow or fixed). It is recorded in the template and in the resolved document. The current renderer does not change layout based on it; the layout comes from the elements. Use fixed regions for fixed positioning.
Where to read more
Fixed region guide, Fixed versus flow guide, Header and footer guide.