<?php
$pdf->SetFont('Helvetica', '', 8);
$pdf->SetY(50);
$pdf->SetX(25);
$pdf->SetLeftMargin(25);
$pdf->Write(4, $_SESSION['Firma']['Firma_Name']);

//if ("" != $_SESSION['Firma']['Firma_Zusatz']) {
//	$pdf->Write(4, " - ".$_SESSION['Firma']['Firma_Zusatz']);
//}
$pdf->Write(4, ", " . $_SESSION['Firma']['Adresse'] . ", " . $_SESSION['Firma']['PLZ'] . " " . $_SESSION['Firma']['Ort'] . "\n\n");

$pdf->SetFont('Helvetica', '', 10);

if ("" != $ntk['Firma'])
{
	$Adresse = $ntk['Firma'] . "\n";
	$Adresse .= "c/o " . $ntk['Anrede'] . " ";
}
else
{
	$Adresse = $ntk['Anrede'] . "\n";
}
$Adresse .= $ntk['Vorname'] . " " . $ntk['Nachname'] . "\n";
$Adresse .= $ntk['Strasse'] . " " . $ntk['Nummer'] . "\n\n";
$Adresse .= $ntk['PLZ'] . " " . $ntk['Ort'] . "\n";

$pdf->Write(4, $Adresse);

$pdf->SetY(50);
$pdf->SetX(138);
$pdf->SetLeftMargin(138);
$pdf->Cell(15, 4, "Tel:", 0);
$pdf->Cell(47, 4, $_SESSION['Firma']['Telefon'], 0, 1, 'R');
$pdf->Cell(15, 4, "Mail:", 0);
$pdf->SetTextColor($_SESSION['Firma']['F1_Red'], $_SESSION['Firma']['F1_Green'], $_SESSION['Firma']['F1_Blue']);
$pdf->Cell(47, 4, $_SESSION['Firma']['Email'], 0, 1, 'R', 0, "mailto:" . $_SESSION['Firma']['Email']);

$pdf->SetTextColor(0);
$pdf->Cell(15, 4, "www:", 0);
$pdf->SetTextColor($_SESSION['Firma']['F1_Red'], $_SESSION['Firma']['F1_Green'], $_SESSION['Firma']['F1_Blue']);
$pdf->Cell(47, 4, substr($_SESSION['Firma']['Homepage'], 7), 0, 1, 'R', 0, $_SESSION['Firma']['Homepage']);

$pdf->SetTextColor($_SESSION['Firma']['F2_Red'], $_SESSION['Firma']['F2_Green'], $_SESSION['Firma']['F2_Blue']);
$pdf->MultiCell(62, 4, "\n" . $_SESSION['Firma']['Feld'], 0, 'R');

$pdf->SetTextColor(00);
$pdf->SetLeftMargin(20);
$pdf->SetRightMargin(10);