Table of contents
Namespace: Com\Tecnick\Pdf\CSS
File: ListStyle.php line 38
Resolves list marker types and generates the counter text for list items.
The HTML “type” attribute values 1/a/A/i/I are case-sensitive and are mapped to the equivalent CSS list-style-type keyword; CSS keywords are case-insensitive. Counters outside the range of their counter style fall back to the decimal counter.
Tags
- since: 2026-08-24
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2002-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf
Constants
ROMAN_LIMIT
File: ListStyle.php line 43
public mixed ROMAN_LIMIT = 3999999999
Methods
counterText()
File: ListStyle.php line 741
public static counterText(string $type, int $count) : string
Numbers outside the range of the counter style use the decimal counter.
Parameters
- $type : string: List marker type.
- $count : int: List entry position, starting from 1.
Return values
string
isKnownType()
File: ListStyle.php line 701
public static isKnownType(string $type) : bool
Parameters
- $type : string: List marker type.
Return values
bool
isUnordered()
File: ListStyle.php line 691
public static isUnordered(string $type) : bool
Parameters
- $type : string: List marker type.
Return values
bool
pdfUaNumbering()
File: ListStyle.php line 779
public static pdfUaNumbering(string $type, string $tag) : string
Parameters
- $type : string: List marker type.
- $tag : string: HTML tag name of the list element.
Return values
string
resolveKnownType()
File: ListStyle.php line 712
public static resolveKnownType(string $type) : string
Parameters
- $type : string: List marker type.
Return values
string
resolveType()
File: ListStyle.php line 670
public static resolveType(string $type) : string
Internal sentinels and image markers are returned unchanged.
Parameters
- $type : string: List marker type.
Return values
string
roman()
File: ListStyle.php line 801
public static roman(int $num) : string
Roman standard notation can represent numbers up to 3,999. For bigger numbers, up to two layers of the “vinculum” notation are used for a max value of 3,999,999,999.
Parameters
- $num : int: Number to convert.
Return values
string