示例#1
0
     public function Footer()
     {
         $this->SetY(-15);
         $this->SetColor('text', 23, 54, 93, false, '');
         $this->Cell(180, 0, '5-108 SEIEE BUILDINGS, SHANGHAI JIAO TONG UNIVERSITY,', 0, 1, 'C', false, '', 0);
         $this->Cell(180, 0, '800 DONGCHUAN ROAD, MINHANG, SHANGHAI 200240, CHINA', 0, 1, 'C', false, '', 0);
         $this->Cell(180, 0, 'Phone: +86 2134208259 Email: info@acp-conf.org www.acp-conf.org', 0, 1, 'C', false, '', 0);
     }
 }
 // create new PDF document
 $pdf = new myPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
 $fontname = $pdf->addTTFfont('font/arial.ttf', 'TrueTypeUnicode', '', 32);
 // set document information
 $pdf->SetCreator('2014 ACP Committee');
 $pdf->SetAuthor('2014 ACP Committee');
 $pdf->SetTitle('Invitation Letter');
 $pdf->SetSubject('');
 $pdf->SetKeywords('');
 // set default header data
 $pdf->SetHeaderData('header.jpg', PDF_HEADER_LOGO_WIDTH, '' . '', '', array(255, 255, 255), array(255, 255, 255));
 $pdf->setFooterData(array(23, 54, 93), array(255, 255, 255));
 // set header and footer fonts
 $pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
 $pdf->setFooterFont(array($fontname, '', PDF_FONT_SIZE_DATA));
 // set default monospaced font
 $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
 // set margins
 $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
 $pdf->SetHeaderMargin(1);
 $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
 // set auto page breaks
 $var_street = $data["street"];
 $var_plz = $data["plzort"]["postcode"];
 $var_city = $data["plzort"]["city"];
 // Find out what type of participant we are dealing with (normal=1, Service Team.....)
 $pdf = new myPDF('P', 'mm', 'A4');
 //A4, mm und Hochformat
 $pdf->AddPage();
 //Neue Seite Hinzufuegen
 $pdf->SetLeftMargin(20);
 //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);
示例#3
0
    case 'ITA':
        $created = 'Creato il ';
        $sender = 'Mittente:								';
        $recipient = 'Destinatario:	';
        $date = 'Data:														';
        $title = 'Titolo:												';
        $page = 'Pagina';
        break;
    default:
        $created = 'Created on ';
        $sender = 'Sender:							';
        $recipient = 'Recipient:			';
        $date = 'Date:											';
        $title = 'Title:												';
        $page = 'Page';
        break;
}
$pdf = new myPDF();
$pdf->SetFooterData($config['site_url'], $page);
$pdf->Open();
$pdf->SetAuthor($game->player['user_name']);
$pdf->SetTitle($config['site_url']);
$pdf->SetAutoPageBreak(true, 15.0);
$pdf->AddPage();
$pdf->SetFont('Arial', 'I', 8);
$pdf->MultiCell(0, 7, $created . date('d.m.y H:i', time()) . '', 0, 'R');
$pdf->SetFont('Arial', 'B', 16);
$pdf->MultiCell(0, 7, '' . $pdf->MultiCell(0, 7, $sender . $sendername['user_name']), $pdf->MultiCell(0, 7, $recipient . $game->player['user_name']), $pdf->MultiCell(0, 7, $date . $time), $pdf->MultiCell(0, 7, $title . $subject));
$pdf->Ln();
$pdf->MultiCell(0, 7, $text, 1);
$pdf->Output();
 $var_street = $data["street"];
 $var_plz = $data["plzort"]["postcode"];
 $var_city = $data["plzort"]["city"];
 // Find out what type of participant we are dealing with (normal=1, Service Team.....)
 $pdf = new myPDF('P', 'mm', 'A4');
 //A4, mm und Hochformat
 $pdf->AddPage();
 //Neue Seite Hinzufuegen
 $pdf->SetLeftMargin(20);
 //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("Exhibitors 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);