$compsHtml .= $pdf->genCells($mod_strings["LBL_UNITES_NUMBER"]);
$compsHtml .= $pdf->genCells($mod_strings["LBL_RUN_STYLE"]);
$compsHtml .= $pdf->genCells($mod_strings["LBL_QUANTITY"]);
$compsHtml .= $pdf->genCells($mod_strings["LBL_CLEAN_QTY_QP"]);
$compsHtml .= $pdf->genCells($mod_strings["LBL_PAPER_PRESSWASTE_QP"], false, false, true);
for ($i = 0; $i < count($paperEst["layout"]); $i++) {
    $compsHtml .= $pdf->genCells($paperEst["layout"][$i]["lots_number"], true, false, false);
    $compsHtml .= $pdf->genCells($paperEst["layout"][$i]["unites_number"]);
    $compsHtml .= $pdf->genCells($paperEst["layout"][$i]["run_style"]);
    $compsHtml .= $pdf->genCells($paperEst["layout"][$i]["qunatity"]);
    $compsHtml .= $pdf->genCells($paperEst["layout"][$i]["clean_quantity_qp"]);
    $compsHtml .= $pdf->genCells($paperEst["layout"][$i]["presswaste"], false, false, true);
}
$compsHtml .= "<tr><td height=1px bgcolor=" . $pdfColors["label"] . " colspan=6></td></tr>";
$compsHtml .= $pdf->genCells(null, true, false, false);
$compsHtml .= $pdf->genEmptyCells(3);
$compsHtml .= $pdf->genCells($paperEst["subtotal"]["clean_quantity_qp"]);
$compsHtml .= $pdf->genCells($paperEst["subtotal"]["presswaste_amount"], false, false, true);
$compsHtml .= "<tr><td height=1px bgcolor=#fff colspan=6></td></tr>";
$compsHtml .= "<tr><td bgcolor=" . $pdfColors["label"] . " ><font size=" . $pdfFontSize["default"] . ">" . $mod_strings["LBL_OPERATION_WASTE"] . "</font></td>";
$compsHtml .= "<td colspan=5 bgcolor=" . $pdfColors["field"] . " ><font size=" . $pdfFontSize["default"] . ">" . $paperEst["operationwaste"] . "</font></td></tr>";
$compsHtml .= "</table>";
//pre-press
$compsHtml .= $pdf->createHeading($mod_strings["LBL_PREPRESS_ESTIMATE"]);
$compsHtml .= $pdf->genCells($mod_strings["LBL_PREPRESS_NAME"], true, true, false);
$compsHtml .= $pdf->genCells($mod_strings["LBL_PREPRESS_COUNT"]);
$compsHtml .= $pdf->genCells($mod_strings["LBL_PREPRESS_PRICE"]);
$compsHtml .= $pdf->genEmptyCells(3);
$compsHtml .= $pdf->genCells(null, false, false, true);
for ($i = 0; $i < count($prepressEst["prepress"]); $i++) {
    $prepressPrice = $prepressEst["prepress"][$i]["price"] . " " . $mod_strings["LBL_UNITS"];