lib/ezpdf/classes/class.ezpdftable.php
function callHeader( $params )
    {
        $options = array();

        if ( isset( $params['size'] ) )
        {
            $options['fontSize'] = $params['size'];
        }

        if ( isset( $params['justification'] ) )
        {
            $options['justification'] = $params['justification'];
        }

        if ( isset( $params['fontName'] ) )
        {
            $options['fontName'] = 'lib/ezpdf/classes/fonts/'. $params['fontName'];
        }

        $this->addToPreStack( $options );

        $label = $params['label'];
        $level = $params['level'];

        return '<C:callInsertTOC:'. $label .','. $level .'>';
    }
function callHeader( $params )
    {
        $options = array();

        if ( isset( $params['size'] ) )
        {
            $options['fontSize'] = $params['size'];
        }

        if ( isset( $params['justification'] ) )
        {
            $options['justification'] = $params['justification'];
        }

        if ( isset( $params['fontName'] ) )
        {
            $options['fontName'] = 'lib/ezpdf/classes/fonts/'. $params['fontName'];
        }

        $this->addToPreStack( $options );

        $label = $params['label'];
        $level = $params['level'];

        return '<C:callInsertTOC:'. $label .','. $level .'>';
    }
function callHeader ( $ params ) { $ options = array ( ) ; if ( isset ( $ params [ 'size' ] ) ) { $ options [ 'fontSize' ] = $ params [ 'size' ] ; } if ( isset ( $ params [ 'justification' ] ) ) { $ options [ 'justification' ] = $ params [ 'justification' ] ; } if ( isset ( $ params [ 'fontName' ] ) ) { $ options [ 'fontName' ] = 'lib/ezpdf/classes/fonts/' . $ params [ 'fontName' ] ; } $ this -> addToPreStack ( $ options ) ; $ label = $ params [ 'label' ] ; $ level = $ params [ 'level' ] ; return '<C:callInsertTOC:' . $ label . ',' . $ level . '>' ; }
Callback function to set header
Callback function to set header