lib/ezpdf/classes/class.ezpdftable.php
function callInsertTOC( $info )
    {
        $params = explode( ',', $info['p'] );

        $label = $params[0];
        $level = $params[1];

        $tocCount = count( $this->TOC );
        $this->TOC[] = array( 'label' => $this->fixWhitespace( rawurldecode( $label ) ),
                              'localPageNumber' => $this->ezWhatPageNumber( $this->ezGetCurrentPageNumber() ),
                              'level' => $level,
                              'pageNumber' => $this->ezGetCurrentPageNumber() );
        $this->addDestination( 'toc'. $tocCount,
                               'FitH',
                               $this->yOffset() + $this->getFontHeight( $this->fontSize() ) );
    }
function callInsertTOC( $info )
    {
        $params = explode( ',', $info['p'] );

        $label = $params[0];
        $level = $params[1];

        $tocCount = count( $this->TOC );
        $this->TOC[] = array( 'label' => $this->fixWhitespace( rawurldecode( $label ) ),
                              'localPageNumber' => $this->ezWhatPageNumber( $this->ezGetCurrentPageNumber() ),
                              'level' => $level,
                              'pageNumber' => $this->ezGetCurrentPageNumber() );
        $this->addDestination( 'toc'. $tocCount,
                               'FitH',
                               $this->yOffset() + $this->getFontHeight( $this->fontSize() ) );
    }
function callInsertTOC ( $ info ) { $ params = explode ( ',' , $ info [ 'p' ] ) ; $ label = $ params [ 0 ] ; $ level = $ params [ 1 ] ; $ tocCount = count ( $ this -> TOC ) ; $ this -> TOC [ ] = array ( 'label' => $ this -> fixWhitespace ( rawurldecode ( $ label ) ) , 'localPageNumber' => $ this -> ezWhatPageNumber ( $ this -> ezGetCurrentPageNumber ( ) ) , 'level' => $ level , 'pageNumber' => $ this -> ezGetCurrentPageNumber ( ) ) ; $ this -> addDestination ( 'toc' . $ tocCount , 'FitH' , $ this -> yOffset ( ) + $ this -> getFontHeight ( $ this -> fontSize ( ) ) ) ; }
function for inserting TOC
function for inserting TOC