Exemplo n.º 1
0
// ---------------------------------------------------------

// set default font subsetting mode
$pdf->setFontSubsetting(true);

// Set font
// dejavusans is a UTF-8 Unicode font, if you only need to
// print standard ASCII chars, you can use core fonts like
// helvetica or times to reduce file size.
$pdf->SetFont('times', '', 11, '', true);

// Add a page
// This method has several options, check the source code documentation for more information.
$pdf->AddPage();
$pdf->Image('./images/visa/SKL & ZHE.png',18,217,60,45,'PNG','','',true,300);

// set text shadow effect
//$pdf->setTextShadow(array('enabled'=>true, 'depth_w'=>0.2, 'depth_h'=>0.2, 'color'=>array(196,196,196), 'opacity'=>1, 'blend_mode'=>'Normal'));

// Set some content to print
$html1 = <<<EOD
		<div style='background-color:white'>
		$Today<br>
		<br>
		$Title $FirstName $FamilyName<br>
		$Company<br>
		$Address<br>
		$City $ZIP<br>
		$Country<br>
		Phone: $Telephone<br>
 //linker Rand 20 mm
 $pdf->SetAuthor("Mission-Net");
 $pdf->SetCreator("Mission-Net");
 $st_pdf_keywords = 'Reg.-No.: ' . $var_registrationnr;
 $pdf->SetKeywords($st_pdf_keywords);
 $pdf->SetSubject("Mission-Net Registration");
 $pdf->SetTitle("Registration for Mission-Net 2009");
 //######################HEADER###########
 //---------------------------------------
 //      Information und Logo
 //---------------------------------------
 //y-Position setzten
 $pdf->SetY(25);
 //Setzten des Teenstreets Logo
 $pdf->SetX(20);
 $pdf->Image("images/MN_Logo_kleiner.png", $pdf->GetX(), $pdf->GetY(), 60, 20, 'png', 'http://www.mission-net.org');
 //Zweites Logo
 $pdf->SetY(25);
 $pdf->SetX(135);
 $pdf->Image("images/MN_Logo_kleiner.png", $pdf->GetX(), $pdf->GetY(), 60, 20, 'png', 'http://www.mission-net.org');
 //Linie
 $pdf->setLineWidth(1);
 $pdf->Line(20, 45, 195, 45);
 //Cell, Anmeldung gueltig
 $pdf->SetY(50);
 $pdf->SetFont('Arial', 'B', 10);
 $pdf->Cell(0, 1, T_("Please print this page, sign it and send it to us, if you are under 18 years."), 0, 0, 'R');
 //#################HEADER END############
 //#################Mission-Net ADDRESS#######
 $pdf->SetX(20);
 $pdf->SetY(55);