Beispiel #1
0
     $pdf->SetFont('Courier', '', 9);
     $pdf->Cell(25, $summaryIntervalY, $totalAmountStr, 0, 1, "R");
     $pdf->SetFont('Times', 'B', 10);
     $pdf->Cell(95, $summaryIntervalY, " ");
     $pdf->Cell(50, $summaryIntervalY, "Tax-Deductible Contribution:");
     $totalAmountStr = "\$" . number_format($totalAmount - $totalNonDeductible, 2);
     $pdf->SetFont('Courier', '', 9);
     $pdf->Cell(25, $summaryIntervalY, $totalAmountStr, 0, 1, "R");
     $curY = $pdf->GetY();
     $curY = $pdf->GetY();
     if ($curY > $bottom_border1) {
         $pdf->AddPage();
         if ($letterhead == "none") {
             // Leave blank space at top on all pages for pre-printed letterhead
             $curY = 20 + $summaryIntervalY * 3 + 25;
             $pdf->SetY($curY);
         } else {
             $curY = 20;
             $pdf->SetY(20);
         }
     }
     $pdf->SetFont('Times', '', 10);
     $pdf->FinishPage($curY, $prev_fam_ID, $prev_fam_Name, $prev_fam_Address1, $prev_fam_Address2, $prev_fam_City, $prev_fam_State, $prev_fam_Zip, $prev_fam_Country);
 }
 // Start Page for New Family
 if ($fam_ID != $currentFamilyID) {
     $curY = $pdf->StartNewPage($fam_ID, $fam_Name, $fam_Address1, $fam_Address2, $fam_City, $fam_State, $fam_Zip, $fam_Country, $iYear, $fam_envelope);
     $summaryDateX = $pdf->leftX;
     $summaryCheckNoX = 40;
     $summaryMethodX = 60;
     $summaryFundX = 85;