ez.no / exponential / documentation / reference / template operators / pdf / line
{pdf( line, hash( x1, x_start,
y1, y_start,
x2, x_stop,
y2, y_stop,
[ page, occurence, ]
[ thickness, line_thickness ] ) )}
| Name | Type | Description | Required |
|---|---|---|---|
| x1 | float | Line X start point | yes |
| y1 | float | Line Y start point | yes |
| x2 | float | Line X stop point | yes |
| y2 | float | Line Y stop point | yes |
| pages | string | Line occurence on pages, all or current, default current | no |
| thickness | float | Line thickness, default 1 | no |
Draw a line in PDF document.
Note:
When creating lines for all pages, these must be defined same plase as page footer/header ( once at the end of the document specification ).
Availble from 3.4 and newer.
{pdf( line, hash( x1, 100, y1, 100, x2, 100, y2, 300 ))}
Will draw a line from (100, 100) to ( 100, 300) on the current page.
log in or create a user account to comment.
Comments