Position content in page margins for print layouts
The MarginBox component allows you to position content in the margins of printed pages. It’s particularly useful for adding headers, watermarks, and other content that needs to appear in the margin areas of your printed documents.
For page numbers and footers, we recommend using the Footer component which provides built-in page numbering functionality.
Top Positions:- 'top-left-corner' // Top left corner of the page- 'top-left' // Top left margin- 'top-center' // Top center margin- 'top-right' // Top right margin- 'top-right-corner' // Top right corner of the pageLeft/Right Positions:- 'left-top' // Left margin, top aligned- 'left-middle' // Left margin, middle aligned- 'left-bottom' // Left margin, bottom aligned- 'right-top' // Right margin, top aligned- 'right-middle' // Right margin, middle aligned- 'right-bottom' // Right margin, bottom alignedBottom Positions:- 'bottom-left-corner' // Bottom left corner of the page- 'bottom-left' // Bottom left margin- 'bottom-center' // Bottom center margin- 'bottom-right' // Bottom right margin- 'bottom-right-corner'// Bottom right corner of the page