HTML

HTML PDF class

Namespace: Com\Tecnick\Pdf

abstract class HTML extends JavaScript

Extends: JavaScript

Source: src/HTML.php:459

HTML PDF class

Types

THTMLRadiusLength

array{v: float, pct: bool}

THTMLRadiusCorner

array{0: THTMLRadiusLength, 1: THTMLRadiusLength}

THTMLBorderRadius

array{
    TL: THTMLRadiusCorner,
    TR: THTMLRadiusCorner,
    BR: THTMLRadiusCorner,
    BL: THTMLRadiusCorner
}

THTMLRadii

array{
    TL?: array{0: float, 1: float},
    TR?: array{0: float, 1: float},
    BR?: array{0: float, 1: float},
    BL?: array{0: float, 1: float}
}

THTMLCornerMask

array{TL: bool, TR: bool, BR: bool, BL: bool}

THTMLTableCell

array{
    cellx: float,
    cellw: float,
    colindex: int,
    colspan: int,
    contenth: float,
    valign: string,
    bstyles: array<int|string, BorderStyle>,
    fillstyle: ?BorderStyle,
    radius?: THTMLBorderRadius,
    buffer: string,
    segbuffers?: array<int, string>,
    lastseg?: int,
    lastbottom?: float,
    minheight?: float
}

THTMLTableRowspanCell

array{
    cellx: float,
    cellw: float,
    colindex: int,
    colspan: int,
    rowtop: float,
    rowsremaining: int,
    usedheight: float,
    contenth: float,
    valign: string,
    bstyles: array<int|string, BorderStyle>,
    fillstyle: ?BorderStyle,
    radius?: THTMLBorderRadius,
    buffer: string,
    continued?: bool
}

THTMLRowSegment

array{
    pid: int,
    region: int,
    rx: float,
    tabletop: float,
    top: float,
    bottom: float
}

THTMLRowFragment

array{
    segments: array<int, THTMLRowSegment>,
    thead: string
}

THTMLTableState

array{
    originx: float,
    originy: float,
    captiontopy: float,
    width: float,
    dir: string,
    cols: int,
    colwidth: float,
    colwidths: array<int, float>,
    cellspacingh: float,
    cellspacingv: float,
    cellpadding: float,
    collapse: bool,
    hascellborders: bool,
    prevrowbottom: array<int, BorderStyle>,
    rowtop: float,
    rowheight: float,
    minheight: float,
    domkey: int,
    colindex: int,
    cells: array<int, THTMLTableCell>,
    occupied: array<int, int>,
    rowspans: array<int, THTMLTableRowspanCell>,
    regionoffset: float,
    borderbuf?: string,
    frag?: THTMLRowFragment|null,
    framecontinued?: bool
}

THTMLTableCellContext

array{
    originx: float,
    originy: float,
    maxwidth: float,
    maxheight: float,
    lineadvance: float,
    linebottom: float,
    lineascent: float,
    linewordspacing: float,
    linewrapped: bool,
    rowtop: float,
    cellx: float,
    cellw: float,
    colindex: int,
    colspan: int,
    padding: array{'T': float, 'R': float, 'B': float, 'L': float},
    margin: array{'T': float, 'R': float, 'B': float, 'L': float},
    bstyles: array<int|string, BorderStyle>,
    fillstyle: ?BorderStyle,
    radius?: THTMLBorderRadius,
    rowspan: int,
    minheight: float,
    valign: string,
    buffer: string,
    frag?: bool,
    segindex?: int,
    segbuffers?: array<int, string>
}

THTMLAttrib

array{
    'align': bool|float|string,
    'attribute': array<string, string|array<string, mixed>>,
    'caption-top-html'?: string,
    'caption-bottom-html'?: string,
    'caption-side': string,
    'closekey'?: int,
    'tableclosekey'?: int,
    'baselineoffset'?: float,
    'bgcolor': bool|float|string,
    'block': bool,
    'border-collapse': string,
    'border-spacing'?: TCSSBorderSpacing,
    'border': array<string, BorderStyle>,
    'border-radius'?: THTMLBorderRadius,
    'clip': bool,
    'cols': int,
    'content': string,
    'cssdata': array<string, TCSSData>,
    'csssel': array<string>,
    'clear': string,
    'dir': string,
    'display': string,
    'empty-cells': string,
    'elkey': int,
    'fgcolor': string,
    'fill': bool,
    'font-size-adjust': float|string,
    'font-stretch': float,
    'font-variant': string,
    'fontname': string,
    'fontsize': float,
    'fontstyle': string,
    'height': float,
    'hide': bool,
    'letter-spacing': float,
    'line-height': float,
    'line-height-absolute'?: float,
    'line-height-font-size-basis'?: bool,
    'list-style-position': string,
    'listtype': string,
    'listtypeset': bool,
    'float': string,
    'margin': array<string, float>,
    'opening': bool,
    'orphans': int,
    'overflow-wrap'?: string,
    'page': string,
    'padding': array<string, float>,
    'parent': int,
    'pendingcellpadding'?: float,
    'pendingcellspacingh'?: float,
    'pendingcellspacingv'?: float,
    'pendingcolwidths'?: array<int, float>,
    'pendinggrid'?: array<int, array{0: int, 1: int}>,
    'position': string,
    'quotes': string,
    'rows': int,
    'self': bool,
    'stroke': float,
    'strokecolor': string,
    'childblockbottom'?: float,
    'ctxoriginx'?: float,
    'ctxmaxwidth'?: float,
    'ctxregionoffset'?: float,
    'inlineblocknextx'?: float,
    'inlineblockrowy'?: float,
    'inlineblockpageid'?: int,
    'table-layout': string,
    'style': array<string, string>,
    'list-style-image'?: string,
    'tag': bool,
    'text-indent': float,
    'text-indent-each-line': bool,
    'text-transform': string,
    'thead': string,
    'trids': array<int>,
    'valign': string,
    'value': string,
    'white-space': string,
    'widows': int,
    'word-break'?: string,
    'word-spacing': float,
    'width': float,
    'x': float,
    'y': float,
}

THTMLSlimNode

array{
    'slim': true,
    'tag': bool,
    'opening': bool,
    'value': string,
    'parent': int,
    'elkey': int,
    'stylesrc'?: int,
    'dir'?: string,
    'hide'?: bool,
    'block'?: bool,
    'display'?: string,
    'margin'?: array<string, float>,
    'padding'?: array<string, float>,
}

THTMLDOMNode

THTMLAttrib|THTMLSlimNode

THTMLSharedArrays

array{
    'attribute': array<string, array<string, string|array<string, mixed>>>,
    'border': array<string, array<string, BorderStyle>>,
    'border-radius': array<string, THTMLBorderRadius>,
    'border-spacing': array<string, TCSSBorderSpacing>,
    'cssdata': array<string, array<string, TCSSData>>,
    'csssel': array<string, array<string>>,
    'margin': array<string, array<string, float>>,
    'padding': array<string, array<string, float>>,
    'style': array<string, array<string, string>>,
}

THTMLCSSRule

array{
    'k': string,
    's': string,
    'c': string,
    'match': string,
    'pseudo': string,
}

THTMLCSSRuleIndex

array{
    'css': array<string, string>,
    'rules': list<THTMLCSSRule>,
    'buckets': array<string, list<int>>,
}

THTMLBlockBuf

array{
    openkey: int,
    bx: float,
    by: float,
    bw: float,
    buffer: string,
    celldepth: int,
    decorate: bool,
    radius?: THTMLBorderRadius,
    split?: bool
}

THTMLTableColHints

array{
    colwidths: array<int, float>,
    explicit: array<int, bool>,
    firstrow: array<int, bool>,
    weights: array<int, float>,
    hasexplicit: bool,
    hascontent: bool
}

THTMLTableColTagHint

array{
    hintcol: int,
    active: bool,
    hascols: bool,
    start: int,
    span: int,
    width: float
}

THTMLEstimateLine

array{
    height: float,
    inlinewidth: float,
    inlineadvance: float,
    hasinlinecontent: bool
}

THTMLRenderContext

array{
    'cellctx': array{
        originx: float,
        originy: float,
        lineoriginx: float,
        maxwidth: float,
        maxheight: float,
        floatrowleftw: float,
        floatrowrightw: float,
        floatrowtop: float,
        floatrowbottom: float,
        lineadvance: float,
        linebottom: float,
        lineascent: float,
        lineascentnolookahead: bool,
        linewordspacing: float,
        linewrapped: bool,
        textindentapplied: bool,
        firstlineinset: float,
        pendingblockmarginb: float,
        activepage?: string,
        regionoffset?: float,
        basefont: string
    },
    'currentkey'?: int,
    'fontcache': array<string, array<string, mixed>>,
    'liststack': array<int, array{
        type: string,
        count: int,
        indent: float
    }>,
    'tablestack': array<int, THTMLTableState>,
    'bcellctx': array<int, THTMLTableCellContext>,
    'blockbuf': array<int, THTMLBlockBuf>,
    'pageout'?: array<int, array{pid: int, out: string}>,
    'linkstack': array<int, array{href: string, desc: string}>,
    'listack': array<int, array{
        originx: float,
        maxwidth: float
    }>,
    'prelevel': int,
    'quotelevel': int,
    'dom': array<int, THTMLDOMNode>,
    'ancestorcache'?: array<string, array<int, int>>,
    'labelforcache'?: array<string, list<int>>,
    'idcache'?: array<string, int>,
    'inheritcache'?: array<string, array<int, string>>,
    'theadheightcache'?: array<string, float>,
    'inlinebox'?: array<int, array{started: bool, pending: float}>,
}

THTMLTextLine

array{
    originx: float,
    offset: float,
    available: float,
    remaining: float,
    follows: bool,
    indent: float,
    curascent: float,
    curheight: float,
    ascent: float,
    advance: float
}

THTMLTextRender

array{
    x: float,
    y: float,
    w: float,
    offset: float,
    linespace: float,
    align: string,
    wordspacing: float,
    startx: float,
    baseline: float,
    defer: bool,
    trailjustify: float,
    trailspace: float,
    lasttrail: float
}

THTMLRtlPiece

array{
    key: int,
    text: string,
    image: bool,
    src: string,
    width: float,
    height: float,
    valign: string
}

THTMLRtlSegment

array{
    key: int,
    text: string,
    width: float,
    ascent: float,
    image: bool,
    height: float,
    valign: string,
    src: string
}

THTMLRtlToken

array{
    key: int,
    text: string,
    width: float,
    ascent: float,
    space: bool,
    image: bool,
    height: float,
    valign: string,
    src: string
}

THTMLRtlUnit

array{
    space: bool,
    width: float,
    parts: array<int, THTMLRtlSegment>
}

THTMLTcpdfObject

array{
    tid: string,
    width: float,
    height: float,
    display: string,
    valign: string,
    halign: string,
    alt: string
}

Inherited members

From Attributes

From Base

From Block

From Cell

From CSS

From Document

  • addSVG(): Add a new SVG image and return its object ID.
  • getSetSVG(): Get the PDF output string to print the specified SVG object.

From Dom

From FormImage

From JavaScript

From ListMarker

  • setULLIDot(): Sets the default symbol to be used as unordered-list (UL) list-item (LI) bullet.

From Render

  • addHTMLCell(): Adds an HTML block inside a rectangular cell.
  • getHTMLCell(): Returns the PDF code to render an HTML block inside a rectangular cell.
  • getLastHTMLCellEnd(): Returns the page and the ordinate (user units) of the bottom of the last block rendered by getHTMLCell() or addHTMLCell().

From Selector

From StyleText

From TcpdfTag

From Text