ibexa

Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

text_box

Summary

Inserts text at a specified location (DEPRECATED).

Usage

pdf( text_box, hash( text, text
                     x,     x_offset,
                     y,     y_offset,
                     width, total width,
                   [ align, text_alignment, ]
                   [ size,  text_size       ] ) )

Parameters

NameTypeDescriptionRequired
text string The text that should be inserted into the box. Yes.
x float X coordinate of the text box. Yes.
y float Y coordinate of the text box. Yes.
width float The width of the text box. Yes.
align string The alignment of the text. No.
size float The font size. No.

Description

This function creates a text box at the specified place on the current page. The font properties (type, size, and color) are not affected by the "set_font" function.

If the text box is positioned before any other content, the content will flow nicely over and under the text box. If other content is present before the text box is added, the text box will overlap it.

Examples

Example 1

{pdf( 'text_box',  hash( 'text', 'This text appears in a text box.'|wash( 'pdf' ),
                         'x', 250,
                         'y', 400,
                         'width', 30) )}

This example will write a sentence at coordinate (250, 400).

Balazs Halasy (01/06/2004 1:40 pm)

Julia Shymova (11/01/2008 1:12 pm)

Balazs Halasy, Julia Shymova


Comments

  • Is it impossible to control the font in a pdf text_box?

    Is there really no way to spesify font type etc. in a pdf text_box?