tFPDF::Ln PHP Метод

Ln() публичный Метод

public Ln ( $h = null )
    function Ln($h = null)
    {
        // Line feed; default value is last cell height
        $this->x = $this->lMargin;
        if ($h === null) {
            $this->y += $this->lasth;
        } else {
            $this->y += $h;
        }
    }

Usage Example

Пример #1
0
 /**
  * Constructs a single line
  *
  * @param \tFPDF $pdf
  * @param $text
  * @param int|null $margin
  * @param $fontSize
  * @param bool $useBoldFont
  * @internal param string $fontWeight
  * @return $this
  */
 private function makeLine(&$pdf, $text, $fontSize, $margin = null, $useBoldFont = false)
 {
     $fontFamily = $useBoldFont ? 'arialbd' : 'arial';
     $pdf->SetFont($fontFamily, '', $fontSize);
     $pdf->Ln($margin);
     $pdf->Cell(0, 0, $text, 0, 1, 'C');
     return $this;
 }
All Usage Examples Of tFPDF::Ln