ez.no / exponential / documentation / reference / template operators / pdf / text_frame
{pdf( text_frame, text, hash( [ frameRGB, rgb_frame_color, ]
[ frameCMYK, cmyk_frame_color, ]
[ textRGB, rgb_text_color, ]
[ textCMYK, cmyk_text_color, ]
[ fontSize, font_size, ]
[ fontName, font_name, ]
[ padding, text_padding, ]
[ leftPadding, left_text_padding, ]
[ rightPadding, right_text_padding, ]
[ topPadding, top_text_padding, ]
[ bottomPadding, bottom_text_padding, ]
[ roundEnds, round_ends ] ) )}
| Name | Type | Description | Required |
|---|---|---|---|
| frameRGB | array | Frame RGB color, range 0 .. 255 | no |
| frameCMYK | array | Frame CMYK color, range 0 .. 1 | no |
| textRGB | array | Text RGB color, range 0 .. 255 | no |
| textCMYK | array | Text CMYK color, range 0 .. 1 | no |
| fontSize | integer | Font size | no |
| fontName | string | Font name | no |
| padding | integer | Padding around text | no |
| leftPadding | integer | Padding left of text | no |
| rightPadding | integer | Padding rigth of text | no |
| topPadding | integer | Padding at top of text | no |
| bottomPadding | integer | Padding at bottom of text | no |
| roundEnds | boolean | Create round ends at end of text frame | no |
| text | string | Text to display inside text frame | yes |
Create a frame around text.
Setting right or left padding to -1 will fill right or left of page.
Available from 3.4 and newer
{pdf(text_frame, "Test frame", hash( roundEnds, 1, textCMYK, array(0.89, 0.43, 0.01, 0), frameCMYK, array(0,0,0,0), padding, 8, fontSize, 17, leftPadding, 10, rightPadding, -1 ))}
Will create frame around "Test frame" , with the left side rounded.
log in or create a user account to comment.
Comments