TCPDF::getHTMLUnitToUnits( $htmlval, $refsize = 1, $defaultunit = 'px', $points = false )
Convert HTML string containing value and unit of measure to user’s units or points.
Description Description
Parameters Parameters
- $htmlval
-
(Required) (string) String containing values and unit.
- $refsize
-
(Optional) (string) Reference value in points.
Default value: 1
- $defaultunit
-
(Optional) (string) Default unit (can be one of the following: %, em, ex, px, in, mm, pc, pt).
Default value: 'px'
- $points
-
(Optional) (boolean) If true returns points, otherwise returns value in user's units.
Default value: false
Return Return
(float) value in user's unit or point if $points=true
Source Source
File: includes/lib/tcpdf/tcpdf.php
Changelog Changelog
Version | Description |
---|---|
4.4.004 | Introduced. |