$aop->text(529 + $aop->right(50, 6, $row['f_total']), $print_height, $row['f_total'], 6); $print_height += $line_height * $print_height_add; if ($print_height > 625 || $i + 1 == $total_rows) { if ($i + 1 < $total_rows) { $write_total_fp = 'VAN'; $aop->text(482 + $aop->right($aop->pdf->getTextWidth(6, $write_total_fp), 6, $write_total_fp), 636, $write_total_fp, 6); } $new_total_fp = number_format($total_fp, 2); $aop->text(507 + $aop->right(70, 7, $new_total_fp), 645, $new_total_fp, 7); if ($print_height > 625) { $new_page = true; $create_page = true; } } } $aop->export_pdf(); // // Output to browser // $d->ezOutput(); $d->stream(); die; } break; } } } print_layout($error); // // Functions //