ibexa

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

ul

Summary

Inserts a bullet list.

Usage

pdf( ul, text, hash( [ rgb,        rgb_color,    ]
                     [ cmyk,       cmyk_color,   ]
                     [ radius,     dot_radius,   ]
                     [ indent,     text_indent,  ]
                     [ pre_indent, bullet_indent ] ) )

Parameters

NameTypeDescriptionRequired
text string Bullet text. Yes.
rgb array Array of RGB colors. No.
cmyk array Array of CMYK colors. No.
radius float The radius of the dot. No.
indent float Text indentation after the dot. No.
pre_indent float Indentation before the bullet. No.

Description

This function inserts a bullet list into the PDF document.

The colors of the bullet can be specified using the "rgb" or the "cmyk" parameter. The "rgb" parameter must be an array consisting of three integers between 0 and 255. The "cmyk" parameter must be array of four decimal numbers between 0.0 and 1.0.

The size of the bullet can be controlled using the "radius" parameter. The indentation (in dots) before and after the dot can be specified using the "pre_indent" and "indent" parameters.

Examples

Example 1

{pdf( 'text', "Most popular internet browsers in 2004:" |wash( 'pdf' )}
 
{pdf( 'ul', 'Internet Explorer (88,9%)'|wash( 'pdf' ) )}
{pdf( 'ul', 'Version 6 (80.95%)'|wash( 'pdf' ), hash( 'pre_indent', 15 ) )}
{pdf( 'ul', 'Version 5.5 (4.18%)'|wash( 'pdf' ), hash( 'pre_indent', 15 ) )}
{pdf( 'ul', 'Version 5.0 (3.66%)'|wash( 'pdf' ), hash( 'pre_indent', 15 ) )}
{pdf( 'ul', 'Mozilla-based browsers (7.35%)'|wash( 'pdf' ) )}
{pdf( 'ul', 'Rest (3.75%)'|wash( 'pdf' ) )}

This example generates a bullet list where some of the bullets are indented.

Balazs Halasy (14/05/2004 10:51 am)

Balazs Halasy (04/05/2005 10:03 am)

Balazs Halasy, Raymond Bosman


Comments

There are no comments.