           .addEventListener("click", () => {
                const invoice = this.document.getElementById("main");
                console.log(invoice);
                console.log(window);
                var opt = {
                    margin:0.1,
                    filename: '{{ obj.id }}.pdf',
                    image: { type: 'jpeg', quality: 0.98 },
                    html2canvas: { scale: 4 },
                    jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' }
                };
