Green Valley Senior Secondary School
Sukhanjan P/O Bokajan, Bokajan, Karbi Anglong, Assam (782480)
[email protected]
+91 3675 299948
TC Issued
<pre class="language-markup"><code><!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Transfer Certificate</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="certificate-container"> <div class="header"> <h1 class="school-name">EXCELSIOR PUBLIC SCHOOL</h1> <p class="school-address">123 Education Lane, New Delhi - 110001</p> <h2 class="document-title">TRANSFER CERTIFICATE</h2> </div> <div class="certificate-body"> <div class="info-row"> <span>Admission No: <strong>{{admission_no}}</strong></span> <span>TC Serial No: <strong>{{tc_serial}}</strong></span> </div> <p>This is to certify that <strong>{{student_name}}</strong>, son/daughter of <strong>{{father_name}}</strong> and <strong>{{mother_name}}</strong>, was a student of this school.</p> <table class="details-table"> <tr> <td>1. Date of Birth:</td> <td>{{dob}}</td> </tr> <tr> <td>2. Nationality:</td> <td>{{nationality}}</td> </tr> <tr> <td>3. Date of Admission:</td> <td>{{admission_date}}</td> </tr> <tr> <td>4. Class in which last studied:</td> <td>{{last_class}}</td> </tr> <tr> <td>5. Reason for leaving:</td> <td>{{reason}}</td> </tr> <tr> <td>6. General Conduct:</td> <td>{{conduct}}</td> </tr> </table> <p class="footer-text"> He/She has paid all school dues up to <strong>{{dues_date}}</strong>. </p> </div> <div class="signatures"> <div class="sig-box">Class Teacher</div> <div class="sig-box">Checked By</div> <div class="sig-box">Principal (With Seal)</div> </div> </div> </body> </html></code></pre> <pre class="language-javascript"><code>import com.lowagie.text.*; import com.lowagie.text.pdf.PdfWriter; import javax.servlet.http.HttpServletResponse; import java.io.IOException; public class TCGenerator { public void generateTransferCertificate(HttpServletResponse response, Student student) throws IOException { // Set response headers for PDF download response.setContentType("application/pdf"); response.setHeader("Content-Disposition", "attachment; filename=TC_" + student.getRollNo() + ".pdf"); Document document = new Document(PageSize.A4); PdfWriter.getInstance(document, response.getOutputStream()); document.open(); // Header Font headerFont = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 18); Paragraph header = new Paragraph("TRANSFER CERTIFICATE", headerFont); header.setAlignment(Element.ALIGN_CENTER); document.add(header); document.add(new Paragraph("\n")); // Space // Student Data Injection document.add(new Paragraph("Student Name: " + student.getName())); document.add(new Paragraph("Admission No: " + student.getAdmissionNo())); document.add(new Paragraph("Date of Birth: " + student.getDob())); document.add(new Paragraph("Reason for Leaving: " + student.getReason())); document.add(new Paragraph("Conduct: " + student.getConduct())); document.close(); } } </code></pre> <pre class="language-java"><code>import com.lowagie.text.*; import com.lowagie.text.pdf.PdfWriter; import javax.servlet.http.HttpServletResponse; import java.io.IOException; public class TCGenerator { public void generateTransferCertificate(HttpServletResponse response, Student student) throws IOException { // Set response headers for PDF download response.setContentType("application/pdf"); response.setHeader("Content-Disposition", "attachment; filename=TC_" + student.getRollNo() + ".pdf"); Document document = new Document(PageSize.A4); PdfWriter.getInstance(document, response.getOutputStream()); document.open(); // Header Font headerFont = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 18); Paragraph header = new Paragraph("TRANSFER CERTIFICATE", headerFont); header.setAlignment(Element.ALIGN_CENTER); document.add(header); document.add(new Paragraph("\n")); // Space // Student Data Injection document.add(new Paragraph("Student Name: " + student.getName())); document.add(new Paragraph("Admission No: " + student.getAdmissionNo())); document.add(new Paragraph("Date of Birth: " + student.getDob())); document.add(new Paragraph("Reason for Leaving: " + student.getReason())); document.add(new Paragraph("Conduct: " + student.getConduct())); document.close(); } } </code></pre>
Submit