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


Top ↑

Return Return

(float) value in user's unit or point if $points=true


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.4.004 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.