示例#1
0
<?php

$pdf = new IanseoPdf('', false);
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
$pdf->SetMargins(0, 0, 0);
$pdf->SetAutoPageBreak(false, 0);
$pdf->SetFont('', '', 220);
$pdf->SetAuthor('http://www.ianseo.net');
$pdf->SetCreator('Software Design by Ianseo');
$pdf->SetTitle('IANSEO - Integrated Result System');
$pdf->SetSubject('Final Athlete Name');
$pdf->SetTextColor(0x0, 0x0, 0x0);
$pdf->SetDrawColor(0x33, 0x33, 0x33);
$pdf->SetFillColor(0xe8, 0xe8, 0xe8);
$rep = array('ASD' => '', 'A.S.D.' => '');
$n = 0;
error_reporting(E_ALL);
while ($MyRow = safe_fetch($Rs)) {
    $match2 = $n % 2 == 0;
    $n++;
    if ($match2) {
        $pdf->AddPage();
        $pdf->Line(5, $pdf->getPageHeight() / 2, 15, $pdf->getPageHeight() / 2);
        $pdf->Line($pdf->getPageWidth() - 15, $pdf->getPageHeight() / 2, $pdf->getPageWidth() - 5, $pdf->getPageHeight() / 2);
    }
    if ($match2) {
        $pdf->SetXY(10, 10);
    } else {
        $pdf->SetXY(10, $pdf->getPageHeight() / 2 + 10);
    }