function addPreContent($contents) { // Before Title Page (user generated) $this->addFrontMatterByType('before-title', $contents); // Cover if (1 == $this->options['mpdf_include_cover']) { $this->addCover(); } // Title (user generated) $this->addFrontMatterByType('title-page', $contents); // Title page $this->addBookInfo(); // Copyright $this->addCopyright(); // Dedication and Epigraph (In that order!) $this->addFrontMatterByType('dedication', $contents); $this->addFrontMatterByType('epigraph', $contents); // Table of Contents if (1 == $this->options['mpdf_include_toc']) { $this->addToc(); } }