Login
Username:

Password:


Lost Password?

Register now!
Mainmenue
FAQ - Speedlinks
PHP - Manual - Speedlinks
SmartFAQ is developed by The SmartFactory (http://www.smartfactory.ca), a division of InBox Solutions (http://www.inboxsolutions.net)
FAQ > PDF

FPDF: Wie erstelle ich ein einfaches PDF-Dokument?
Requested and Answered by Admin on 28-Nov-2005 23:36 (310 reads)
Das ist ganz einfach.


Hierzu muss man nur die FPDF-Klassendatei einbinden und anschließend das PDF-File erstellen.

 
<?php
include_once('fpdf.php');//Einbinden der Klassen
 
$pdf=new FPDF();//Erstellt ein neue FPDF instanz
$pdf->AddPage();//Eine neue Page erstellen
$pdf->SetFont('Arial','B',16); //Fuer den naechsten Block eigenschalften Festlegen
$pdf->Cell(40,10,'Hallo Welt!');//Den Block erstellen
$pdf->Output();//Ausgabe erzeugen
?>
 


The comments are owned by the poster. We aren't responsible for their content.
php.a-bout.de ©2007 Stefan Freisler
Valid XHTML 1.0 Transitional Valid CSS!