} else { $pdf->Cell($w, 0, '', 0, 0); } $pdf->ln(); if (array_key_exists(0, $line) and $line[0] >= 0) { $pdf->Cell($w, 0, MyTMC::encode($details[$line[0]]->getUnittotal()) . ' ' . MyDateTime::frommysql($purchase->getDate())->toshortdate(), 0, 0); } else { $pdf->Cell($w, 0, '', 0, 0); } if (array_key_exists(1, $line) and $line[1] >= 0) { $pdf->Cell($w, 0, MyTMC::encode($details[$line[1]]->getUnittotal()) . ' ' . MyDateTime::frommysql($purchase->getDate())->toshortdate(), 0, 0); } else { $pdf->Cell($w, 0, '', 0, 0); } if (array_key_exists(2, $line) and $line[2] >= 0) { $pdf->Cell($w, 0, MyTMC::encode($details[$line[2]]->getUnittotal()) . ' ' . MyDateTime::frommysql($purchase->getDate())->toshortdate(), 0, 0); } else { $pdf->Cell($w, 0, '', 0, 0); } $pdf->ln(); $pdf->SetFont('dejavusans', '', 2, '', true); $pdf->ln(); $pdf->SetFont('dejavusans', '', 8, '', true); } // --------------------------------------------------------- // Close and output PDF document // This method has several options, check the source code documentation for more information. $pdf->Output('example_001.pdf', 'I'); //============================================================+ // END OF FILE //============================================================+
} else { $pdf->Cell($w, 0, '', 0, 0); } $pdf->ln(); if ($line[0]) { $pdf->Cell($w, 0, MyTMC::encode($product->getMaxbuyprice()), 0, 0); } else { $pdf->Cell($w, 0, '', 0, 0); } if ($line[1]) { $pdf->Cell($w, 0, MyTMC::encode($product->getMaxbuyprice()), 0, 0); } else { $pdf->Cell($w, 0, '', 0, 0); } if ($line[2]) { $pdf->Cell($w, 0, MyTMC::encode($product->getMaxbuyprice()), 0, 0); } else { $pdf->Cell($w, 0, '', 0, 0); } $pdf->ln(); $pdf->SetFont('dejavusans', '', 2, '', true); $pdf->ln(); $pdf->ln(); $pdf->SetFont('dejavusans', '', 8, '', true); } // --------------------------------------------------------- // Close and output PDF document // This method has several options, check the source code documentation for more information. $pdf->Output('example_001.pdf', 'I'); //============================================================+ // END OF FILE