TCPDF::writeHTML( $html, $ln = true, $fill = false, $reseth = false, $cell = false, $align = '' )
Allows to preserve some HTML formatting (limited support).
IMPORTANT: The HTML must be well formatted – try to clean-up it using an application like HTML-Tidy before submitting.
Description Description
Supported tags are: a, b, blockquote, br, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, img, li, ol, p, pre, small, span, strong, sub, sup, table, tcpdf, td, th, thead, tr, tt, u, ul NOTE: all the HTML attributes must be enclosed in double-quote.
Parameters Parameters
- $html
-
(Required) (string) text to display
- $ln
-
(Optional) (boolean) if true add a new line after text (default = true)
Default value: true
- $fill
-
(Optional) (boolean) Indicates if the background must be painted (true) or transparent (false).
Default value: false
- $reseth
-
(Optional) (boolean) if true reset the last cell height (default false).
Default value: false
- $cell
-
(Optional) (boolean) if true add the current left (or right for RTL) padding to each Write (default false).
Default value: false
- $align
-
(Optional) (string) Allows to center or align the text. Possible values are:<ul><li>L : left align</li><li>C : center</li><li>R : right align</li><li>'' : empty string : left for LTR or right for RTL</li></ul>
Default value: ''
Source Source
File: includes/lib/tcpdf/tcpdf.php