ez.no / exponential / documentation / reference / template operators / pdf / set_margin
{pdf( set_margin, hash( [ left, left_margin, ]
[ right, right_margiin, ]
[ top, top_margin, ]
[ bottom, bottom_margin, ]
[x, x_offset, ]
[y, y_offset, ]
[line_space, line_space ] ) )}
| Name | Type | Description | Required |
|---|---|---|---|
| left | float | Left page margin | no |
| right | float | Right page margin | no |
| top | float | Top page margin | no |
| bottom | float | Bottom page margin | no |
| x | float | Page x offset | no |
| y | float | Page y offset | no |
| line_space | float | Line Space | no |
Set page margins.
Use x and y parameters for set specific position on page.
Note, default margins are set in settings/pdf.ini
Available from 3.4 and newer
Line Space available from 3.5 and newer.
{pdf(set_margin, hash( top, 80, left, 350, right, 40, x, 350, y, 787))}
{pdf(set_margin, hash( left, 50, right, 50, line_space, 1.5 ))}
log in or create a user account to comment.
Comments