예제 #1
0
 $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
     $pdf->setXY(46, 18);
예제 #2
0
 }
 $border = 0;
 $pdf = new fpdi();
 //Import original Gov't supplied PDF.
 if ($show_background == TRUE) {
     $pagecount = $pdf->setSourceFile(Environment::getBasePath() . 'interface' . DIRECTORY_SEPARATOR . 'forms' . DIRECTORY_SEPARATOR . 'us' . DIRECTORY_SEPARATOR . 'tax' . DIRECTORY_SEPARATOR . 'f940ez.pdf');
     $tplidx = $pdf->ImportPage(1);
 }
 $pdf->setMargins(0, 0, 0, 0);
 $pdf->SetAutoPageBreak(FALSE);
 $pdf->SetFont('freeserif', '', 10);
 $pdf->AddPage();
 if (isset($tplidx)) {
     $pdf->useTemplate($tplidx, 0, 0);
 }
 $pdf->setXY(40, 39);
 $pdf->Cell(75, 6, $current_company->getName(), $border, 0, 'L');
 $pdf->setXY(157, 39);
 $pdf->Cell(10, 6, $filter_data['year'], $border, 0, 'R');
 $pdf->setXY(122, 47);
 $pdf->Cell(45, 6, $current_company->getBusinessNumber(), $border, 0, 'R');
 $pdf->setXY(40, 56);
 $pdf->Cell(75, 6, $current_company->getAddress1() . ' ' . $current_company->getAddress2(), $border, 0, 'L');
 $pdf->setXY(122, 56);
 $pdf->Cell(45, 6, $current_company->getCity() . ', ' . $current_company->getProvince() . ' ' . $current_company->getPostalCode(), $border, 0, 'R');
 if (isset($lines_arr)) {
     //Line A
     $pdf->setXY(173, 69);
     $pdf->Cell(25, 6, Misc::getBeforeDecimal(Misc::MoneyFormat('0.00', FALSE)), $border, 0, 'R');
     $pdf->setXY(198, 69);
     $pdf->Cell(6, 6, Misc::getAfterDecimal(Misc::MoneyFormat('0.00', FALSE)), $border, 0, 'L');
예제 #3
0
 $lines_arr['7'] = Misc::sumMultipleColumns($raw_row, $column_ps_entry_name_map['7']);
 //print_r($lines_arr);
 $pdf->setMargins(0, 0, 0, 0);
 $pdf->SetAutoPageBreak(FALSE);
 $pdf->SetFont('freeserif', '', 10);
 $pages = array(1, 2, 4, 5);
 foreach ($pages as $page) {
     $pdf->AddPage();
     if (isset($tplidx[$page])) {
         $pdf->useTemplate($tplidx[$page], 0, 0);
     }
     if ($show_background == TRUE) {
         $pdf->SetFont('freeserif', 'B', 24);
         $pdf->setFillColor(255, 255, 255);
         if ($page == 1) {
             $pdf->setXY(Misc::AdjustXY(152, $adjust_x), Misc::AdjustXY(28, $adjust_y));
         } elseif (in_array($page, array(2, 4, 5))) {
             $pdf->setXY(Misc::AdjustXY(151, $adjust_x), Misc::AdjustXY(28, $adjust_y));
         }
         $pdf->Cell(10, 7, date('y', $filter_data['transaction_end_date']), $border, 0, 'C', 1);
         $pdf->SetFont('freeserif', '', 10);
     }
     //Company Info
     $pdf->setXY(25, 30);
     $pdf->Cell(65, 5, $current_company->getName(), $border, 0, 'L');
     $pdf->setXY(25, 35);
     $pdf->Cell(65, 5, $current_company->getAddress1() . ' ' . $current_company->getAddress2(), $border, 0, 'L');
     $pdf->setXY(25, 40);
     $pdf->Cell(65, 5, $current_company->getCity() . ', ' . $current_company->getProvince() . ' ' . $current_company->getPostalCode(), $border, 0, 'L');
     $pdf->setXY(25, 45);
     $pdf->Cell(65, 5, $current_company->getWorkPhone(), $border, 0, 'L');