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

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

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

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

        if ( isset( $params['cmyk'] ) )
        {
            $keyArray = array ( 'c', 'm', 'y', 'k' );
            $options['cmyk'] = array();
            $params['cmyk'] = explode( ',', $params['cmyk'] );
            foreach ( array_keys( $params['cmyk'] ) as $key )
            {
                $options['cmyk'][$keyArray[$key]] = $params['cmyk'][$key];
            }
        }

        $this->addToPreStack( $options );

        return '';
    }
function callText( $params )
    {
        $options = array();

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

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

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

        if ( isset( $params['cmyk'] ) )
        {
            $keyArray = array ( 'c', 'm', 'y', 'k' );
            $options['cmyk'] = array();
            $params['cmyk'] = explode( ',', $params['cmyk'] );
            foreach ( array_keys( $params['cmyk'] ) as $key )
            {
                $options['cmyk'][$keyArray[$key]] = $params['cmyk'][$key];
            }
        }

        $this->addToPreStack( $options );

        return '';
    }
function callText ( $ params ) { $ options = array ( ) ; if ( isset ( $ params [ 'font' ] ) ) { $ options [ 'fontName' ] = 'lib/ezpdf/classes/fonts/' . $ params [ 'font' ] ; } if ( isset ( $ params [ 'size' ] ) ) { $ options [ 'fontSize' ] = $ params [ 'size' ] ; } if ( isset ( $ params [ 'justification' ] ) ) { $ options [ 'justification' ] = $ params [ 'justification' ] ; } if ( isset ( $ params [ 'cmyk' ] ) ) { $ keyArray = array ( 'c' , 'm' , 'y' , 'k' ) ; $ options [ 'cmyk' ] = array ( ) ; $ params [ 'cmyk' ] = explode ( ',' , $ params [ 'cmyk' ] ) ; foreach ( array_keys ( $ params [ 'cmyk' ] ) as $ key ) { $ options [ 'cmyk' ] [ $ keyArray [ $ key ] ] = $ params [ 'cmyk' ] [ $ key ] ; } } $ this -> addToPreStack ( $ options ) ; return '' ; }
Callback function for adding text
Callback function for adding text