Esempio n. 1
0
 /**
  * Write the Footnote text
  * Uses style name "footnote" by default
  *
  * @param ReportTcpdf $pdf
  */
 public function renderFootnote($pdf)
 {
     if ($pdf->getCurrentStyle() != $this->styleName) {
         $pdf->setCurrentStyle($this->styleName);
     }
     $temptext = str_replace("#PAGENUM#", $pdf->PageNo(), $this->text);
     // Set the link to this y/page position
     $pdf->SetLink($this->addlink, -1, -1);
     // Print first the source number
     // working
     if ($pdf->getRTL()) {
         $pdf->writeHTML("<span> ." . $this->num . "</span>", false, false, false, false, "");
     } else {
         $temptext = "<span>" . $this->num . ". </span>" . $temptext;
     }
     // underline «title» part of Source item
     $temptext = str_replace(array('«', '»'), array('<u>', '</u>'), $temptext);
     $pdf->writeHTML($temptext, true, false, true, false, '');
 }