public function generateContents($startPage = 3, $pageFormat = 'A5', $print = false)
 {
     if (!Zend_Auth::getInstance()->hasIdentity()) {
         throw new Zend_Exception("Page not found", 404);
     }
     $pdfBook = new Model_Static_PdfBook($pageFormat, $print);
     $book = $pdfBook->generateContents($startPage);
     $this->contentPages = count($book->pages);
     $this->view->nextpage = $startPage + count($book->pages);
     $saveFilename = 'contents-' . $startPage . '.pdf';
     $book->save(APPLICATION_ROOT . $this::PDFBOOK_DIR . '/' . $saveFilename);
 }