$pdf->setMargins(5, 5, 5, 5); $pdf->SetAutoPageBreak(FALSE); $pdf->SetFont('freeserif', '', 10); if ($show_background == TRUE) { //Import original Gov't supplied PDF. $pagecount = $pdf->setSourceFile(Environment::getBasePath() . 'interface' . DIRECTORY_SEPARATOR . 'forms' . DIRECTORY_SEPARATOR . 'us' . DIRECTORY_SEPARATOR . 'tax' . DIRECTORY_SEPARATOR . 'w3.pdf'); $tplidx_summary = $pdf->ImportPage(1); } $pdf->AddPage(); if (isset($tplidx_summary)) { $pdf->useTemplate($tplidx_summary, 0, 0); } //Form year if ($show_background == TRUE) { $pdf->SetFont('freeserif', '', 18); $pdf->setFillColor(255, 255, 255); $pdf->setXY(135, 154); $pdf->Cell(20, 7, $filter_data['year'], $border, 1, 'C', 1); $pdf->SetFont('freeserif', '', 10); $pdf->setXY(59, 203.3); $pdf->Cell(9, 4, $filter_data['year'], $border, 1, 'C', 1); $pdf->SetFont('freeserif', '', 10); } if (isset($rows)) { $i = 0; $last_row = count($rows) - 1; $total_row = $last_row + 1; // // W3 form // //Control Number