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