Esempio n. 1
0
 /**
  * display a automatic index, from the bookmarks
  *
  * @access public
  * @param  string  $titre         index title
  * @param  int     $sizeTitle     font size of the index title, in mm
  * @param  int     $sizeBookmark  font size of the index, in mm
  * @param  boolean $bookmarkTitle add a bookmark for the index, at his beginning
  * @param  boolean $displayPage   display the page numbers
  * @param  int     $onPage        if null : at the end of the document on a new page, else on the $onPage page
  * @param  string  $fontName      font name to use
  * @return null
  */
 public function createIndex($titre = 'Index', $sizeTitle = 20, $sizeBookmark = 15, $bookmarkTitle = true, $displayPage = true, $onPage = null, $fontName = 'helvetica')
 {
     $oldPage = $this->_INDEX_NewPage($onPage);
     $this->pdf->createIndex($this, $titre, $sizeTitle, $sizeBookmark, $bookmarkTitle, $displayPage, $onPage, $fontName);
     if ($oldPage) {
         $this->pdf->setPage($oldPage);
     }
 }