[encoded data, 33184 characters]" 
style="width: 50.50px;" data-filename="image.png">
 
                     <img src="data:image/png;base64,[encoded data, 369104 characters]" 
style="width: 50.50px;" data-filename="image.png"> -->

                  </p>
               </td> 
               <td style="border-radius: 0 !important; border-style: none !important;">
                    <img src="data:image/png;base64,[encoded data, 21620 characters]" data-filename="Firma Ignacio Digital.png"
                    data-filename="Firma Ignacio Digital.png" style="width: 220px; height: 70px;">
                    <p style="font-size: 10.3px; font-weight: bold;">JORGE IGNACIO AREIZA CASTRILLON <BR> GERENTE</p>
               </td>
            </tr>
         </table>

      
       </address>
   </article>
  
   <p style="font-size:10px;">' . $rayaDesprendibleBanco . ' DESPRENDIBLE PARA EL BANCO ' . $rayaDesprendibleBanco . '</p>
   <table style="border-collapse: collapse; border:none; border-width: 0px; style="vertical-align: middle !important;">
        <tr style="float: middle; !important;">
            <td style="border-radius: 0 !important; border-style: none !important; vertical-align: middle !important; width: 30%">
                <img 
                	<img src="data:image/png;base64,[encoded data, 32188 characters]"
	                style="width: 208px;" data-filename="Logo2.png">
            </td>
            <td style="border-radius: 0 !important; border-style: none !important; vertical-align: middle !important; width:70%">
                <img id="barcodeTarget"/>
            </td>
        </tr>
    </table>
</body>
    <script>
        //https://parzibyte.me/blog/2019/08/19/codigos-barras-javascript-jsbarcode/
        
         JsBarcode("#barcodeTarget", "' . $Barcode. '", {
        format: "CODE128",// El formato
    		width: 1.4, // La anchura de cada barra
    		height: 50, // La altura del código
    		displayValue: true, // ¿Mostrar el valor (como texto) del código de barras?
    		text: "' . $BarcodeParent . '", // Texto (no código) que acompaña al barcode
    		fontSize: 12, // Tamaño de la fuente
    		fontOptions: "bold", // Opciones de la fuente del texto del barcode
    		//textAlign: "left", // En dónde poner el texto. center, left o right
    		//textPosition: "top", // Poner el texto arriba (top) o abajo (bottom)
    		//textMargin: 10, // Margen entre el texto y el código de barras
    		//background: "#8bc34a", // Color de fondo
    		//lineColor: "#FF0000", // Color de cada barra
    		//marginTop: 10, // Margen superior
    		//marginRight: 10, // Margen derecho
    		//marginBottom: 5, // Margen inferior
    		//marginLeft: 35, // Margen izquierdo
    	});
	</script>
   <script>
      document.addEventListener("DOMContentLoaded", function (event) {
        //setTimeout(function(){ hola(); }, 1000);
        var descargar = ' . $descargar . ';
        if(descargar == 1) {
             var element = document.getElementById("Invoices");
             
             var opt = {
                filename: "' . str_replace(' ', '', $factura["nombres"] . ' ' . $factura["apellidos"]) . '.pdf",
                image: { type: "jpeg", quality: 0.98 },
                html2canvas: { scale: 2, useCORS: true, letterRendering: true },
                jsPDF: { unit: "mm", format: "letter", orientation: "portrait" }
             };
    		 html2pdf(element, opt);
    		 setTimeout(function(){ window.close(); }, 1650);
        }
        });
        
        function hola(){
            var element = document.getElementById("Invoices");
             
             var opt = {
                filename: "' . $factura["contrato"] . '.pdf",
                image: { type: "jpeg", quality: 0.98 },
                html2canvas: { scale: 2, useCORS: true, letterRendering: true },
                jsPDF: { unit: "mm", format: "letter", orientation: "portrait" }
             };
    		 html2pdf(element, opt);
        }
   </script>
</html>';

echo $html;
die();


?>


	</script>
   <script>
      document.addEventListener("DOMContentLoaded", function (event) {
        //setTimeout(function(){ hola(); }, 1000);
        var descargar = ' . $descargar . ';
        if(descargar == 1) {
             var element = document.getElementById("Invoices");
             
             var opt = {
                filename: "' . str_replace(' ', '', $factura["nombres"] . ' ' . $factura["apellidos"]) . '.pdf",
                image: { type: "jpeg", quality: 0.98 },
                html2canvas: { scale: 2, useCORS: true, letterRendering: true },
                jsPDF: { unit: "mm", format: "letter", orientation: "portrait" }
             };
    		 html2pdf(element, opt);
    		 setTimeout(function(){ window.close(); }, 1650);
        }
        });
        
        function hola(){
            var element = document.getElementById("Invoices");
             
             var opt = {
                filename: "' . $factura["contrato"] . '.pdf",
                image: { type: "jpeg", quality: 0.98 },
                html2canvas: { scale: 2, useCORS: true, letterRendering: true },
                jsPDF: { unit: "mm", format: "letter", orientation: "portrait" }
             };
    		 html2pdf(element, opt);
        }
   </script>
</html>';

echo $html;
die();


?>