예제 #1
0
 function ezNewPage($debug = false)
 {
     parent::ezNewPage();
     if (!$this->set_pageNumbering) {
         $template = $this->converter->newSmarty();
         $parser = new PDFParser();
         $parser->parse($template->fetch('pagenumbering.tpl'), $this->font_dir, $this);
     }
     $this->set_pageNumbering = true;
 }
예제 #2
0
 /**
  * pattern: first <a> with class 'wa-but-txt '
  */
 protected function getPDFURL()
 {
     $doc = parent::getDOMDocument();
     $finder = new DomXPath($doc);
     $spaner = $finder->query("//*[contains(@class, 'wa-but-txt ')]");
     // get first <a>
     if ($spaner->length > 0) {
         $pdfLink = $spaner->item(0);
         return getBaseURL($this->getBaseMenuURL()) . $pdfLink->getAttribute('href');
     }
     return null;
 }