</tr> <tr> <td style="font-size:8px">AUTORIZACIÓN Nº</td> <td align="left" style="font-size:10px">: ' . $nauto . '</td> </tr> <tr><td></td></tr> <tr> <td align = "center" colspan="2">' . $sfc . '</td> </tr> </table> '; //imprime el contenido de la variable html $pdf->writeHTMLCell($w = 0, $h = 0, $x = '140', $y = '17', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true); //dibuja un rectangulo $pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))); $pdf->RoundedRect(138, 15, 61, 18, 2, '1111', null); $imgdata = base64_decode($invoice->logo); $pdf->Image('@' . $imgdata, '19', '10', 80, 24, '', '', 'T', false, 300, '', false, false, 0, false, false, false); ///title $anchoDivFac = 480; if ($invoice->type_third == 0) { $factura = "FACTURA"; $tercero = ""; } else { $factura = "FACTURA POR TERCEROS"; $tercero = $matriz->name; $anchoDivFac = 520; } $titleFactura = '<table> <tr> <td align="center" width="' . $anchoDivFac . '"><font color="#000">' . $factura . '</font></td>
<td style="font-size:8px">FACTURA Nº</td> <td align="left" style="font-size:10px">: ' . $nfac . '</td> </tr> <tr> <td style="font-size:8px">AUTORIZACIÓN Nº</td> <td align="left" style="font-size:10px">: ' . $nauto . '</td> </tr> <tr><td></td></tr> </table> '; //imprime el contenido de la variable html $pdf->writeHTMLCell($w = 0, $h = 0, $x = '137', $y = '13', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true); //dibuja un rectangulo $pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))); $pdf->RoundedRect(135, 11, 64, 18, 2, '1111', null); $imgdata = base64_decode($invoice->logo); $pdf->Image('@' . $imgdata, '19', '6', 80, 24, '', '', 'T', false, 300, '', false, false, 0, false, false, false); ///title $anchoDivFac = 480; if ($invoice->type_third == 0) { $factura = "FACTURA"; $tercero = ""; } else { $factura = "FACTURA POR TERCEROS"; $tercero = $matriz->name; $anchoDivFac = 520; } if ($invoice->anulado == 1) { $factura = "FACTURA ANULADA"; $tercero = "";
$nit = 7024739019; $nfac = 01; $nauto = 1234567890123; // add a page $pdf->AddPage(); //cuadro roy $html = ' <p> NIT : ' . $nit . ' <br> Nº FACTURA : ' . $nfac . ' <br> Nº AUTORIZACION : ' . $nauto . ' <br> </p> '; $pdf->writeHTMLCell($w = 0, $h = 0, $x = '133', $y = '8', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true); // Rounded rectangle $pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))); $pdf->RoundedRect(130, 5, 75, 22, 2, '1111', null); ///title roy $pdf->SetFont('times', 'B', 18); $html2 = '<h1>FACTURA</h1>'; $pdf->writeHTMLCell($w = 0, $h = 0, $x = '75', $y = '18', $html2, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true); //nombre de la empresa roy $pdf->SetFont('times', 'B', 12); $datos = ' <p style="line-height: 150% "> Roy Corp </p>'; $pdf->writeHTMLCell($w = 0, $h = 0, $x = '10', $y = '35', $datos, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true); //original scf-1 roy $pdf->SetFont('times', 'B', 12); $datos2 = ' <p style="line-height: 150% ">
$nauto = 1234567890123; $sfc = 01; // add a page $pdf->AddPage(); //cuadro roy $html = ' <p style="line-height: 175% "> NIT : ' . $nit . ' <br> AUTORIZACIÓN Nº : ' . $nfac . ' <br> FACTURA Nº : ' . $nauto . ' <br> SFC : ' . $sfc . ' <br> </p> '; $pdf->writeHTMLCell($w = 0, $h = 0, $x = '130', $y = '5', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true); // Rounded rectangle $pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))); $pdf->RoundedRect(126, 5, 75, 28, 2, '1111', null); ///title roy $pdf->SetFont('times', 'B', 18); $html2 = '<h1>FACTURA</h1>'; $pdf->writeHTMLCell($w = 0, $h = 0, $x = '145', $y = '50', $html2, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true); //nombre de la empresa roy $pdf->SetFont('times', 'B', 12, false); $datos = ' <p style="line-height: 150% "> LA CASCADA S.A. </p>'; $pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '35', $datos, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true); //original scf-1 roy $pdf->SetFont('times', 'B', 12); $datos2 = ' <p style="line-height: 150% ">
$sfc = $invoice->sfc; // add a page $pdf->AddPage(); //contenido del recuadro $html = '<p style="line-height: 175%"> NIT : ' . $nit . ' <br> AUTORIZACIÓN Nº : ' . $nauto . ' <br> FACTURA Nº : ' . $nfac . ' <br> SFC : ' . $sfc . ' <br> </p>'; //$html = $nauto; //imprime el contenido de la variable html $pdf->writeHTMLCell($w = 0, $h = 0, $x = '125', $y = '5', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true); //dibuja un rectangulo $pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))); $pdf->RoundedRect(126, 5, 75, 28, 2, '1111', null); $imgdata = base64_decode($invoice->logo); $pdf->Image('@' . $imgdata, '14', '18', 30, 30, '', '', 'T', false, 300, '', false, false, 0, false, false, false); ///title if ($invoice->type_third == 0) { $factura = "FACTURA"; $tercero = ""; } else { $factura = "FACTURA POR TERCEROS"; $tercero = $invoice->branch; } $titleFactura = '<table> <tr> <td align="center"><font color="#333333">' . $factura . '</font></td> </tr> </table>';