`);// Wait for content to load, then print and close printWindow.document.close(); printWindow.focus();// Give it a slight delay to ensure rendering before printing setTimeout(() => { printWindow.print(); printWindow.close(); }, 500); }); });

Prikaz rezultata