Child Care Leave Proceeding Form
Proc. No.
Proc. Date
Name
Any Suffix or Prefix
Desi
No. Days now using
Working Place
Previous Used Spells
Mandal
Already Used Leaves
Child Name
DDO Designation
Age
DDO Office
Reason
DDO Proposal date
Application Date
Office
Leave From
Authority Desi
To
Authority Name
`); printWindow.document.close(); setTimeout(() => { printWindow.focus(); printWindow.print(); setTimeout(() => printWindow.close(), 1000); }, 500); } }/* PDF డౌన్‌లోడ్ ఫంక్షన్ */ async function downloadPDFBlob() { const sheet = document.getElementById("printableArea"); if (!sheet) return; const btn = document.getElementById("btnDownloadPdf"); btn.disabled = true; btn.textContent = "Generating PDF..."; try { const pdf = new jspdf.jsPDF({ orientation: 'portrait', unit: 'mm', format: 'a4', compress: true }); const canvas = await html2canvas(sheet, { scale: 2, useCORS: true, logging: false }); pdf.addImage(canvas.toDataURL('image/jpeg', 0.98), 'JPEG', 0, 0, 210, 297, undefined, 'FAST'); pdf.save('CCL_Proceedings.pdf'); } catch (e) { alert("PDF download failed. Please use Print button."); } finally { btn.disabled = false; btn.textContent = "Download PDF"; } }