Exemplo n.º 1
0
 private function addText($text, PdfStyle $style)
 {
     if (strlen($text) > 0) {
         if ($style->isAddLineBefore()) {
             $this->Ln();
         }
         $this->SetFont($style->getFontName(), $style->getFontStyle(), $style->getFontSize());
         $temp = $this->GetX();
         if ($style->getX() > 0) {
             $temp2 = $temp + $style->getX();
             $this->SetX($temp2);
         }
         $this->MultiCell(0, $style->getRowHeight(), $text, 0, $style->getRowIndent());
         if ($style->getX() > 0) {
             $this->SetX($temp);
         }
         if ($style->isAddLineAfter()) {
             $this->Ln();
         }
     }
 }
Exemplo n.º 2
0
 private function addText($text, PdfStyle $style)
 {
     KalturaLog::debug("PDF::: The following text is added: " . $text);
     if (strlen($text) > 0) {
         if ($style->isAddLineBefore()) {
             $this->Ln();
         }
         $this->SetFont($style->getFontName(), $style->getFontStyle(), $style->getFontSize());
         $temp = $this->GetX();
         if ($style->getX() > 0) {
             $temp2 = $temp + $style->getX();
             $this->SetX($temp2);
         }
         $this->MultiCell(0, $style->getRowHeight(), $text, 0, $style->getRowIndent());
         if ($style->getX() > 0) {
             $this->SetX($temp);
         }
         if ($style->isAddLineAfter()) {
             $this->Ln();
         }
     }
 }