pdf( ul, text, hash( [ rgb, rgb_color, ] [ cmyk, cmyk_color, ] [ radius, dot_radius, ] [ indent, text_indent, ] [ pre_indent, bullet_indent ] ) )
Name | Type | Description | Required |
---|---|---|---|
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. |
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.
{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.
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.