from fpdf import FPDF class ResumePDF(FPDF):
def header(self): self.set_font("Arial", "B", 14)
[Link](0, 10, "Resume – Ajay Kumar Gupta",
ln=True, align="C") [Link](5) def section_title(self,
title): self.set_font("Arial", "B", 12)
self.set_text_color(30, 30, 30) [Link](0, 10, title,
ln=True) self.set_text_color(0, 0, 0) def
section_body(self, text): self.set_font("Arial", "", 11)
self.multi_cell(0, 8, text) [Link](2) pdf =
ResumePDF() pdf.add_page() # Contact Info
pdf.set_font("Arial", "", 11) [Link](0, 10, "Ajay
Kumar Gupta", ln=True) [Link](0, 8, "S/o Late
Rajendra Prasad", ln=True) [Link](0, 8, "4/9, Labour
Colony, Mohaddipur, Gorakhpur – 273008", ln=True)
[Link](0, 8, "Mobile: +91 9838583979", ln=True)
[Link](5) # Sections pdf.section_title("Career
Objective") pdf.section_body("Dedicated and
experienced media professional with a background in
journalism and mass communication. " "Proven track
record of contributing to various news platforms with
integrity and commitment to truth. " "Seeking a role
that allows for impactful storytelling and meaningful
news dissemination.") pdf.section_title("Educational
Qualifications") pdf.section_body("- B.A. –
Gorakhpur University, Gorakhpur\n" "- P.G. Diploma
in Journalism and Mass Communication (PGDJMC)
– Rajarshi Tandon Open University")
pdf.section_title("Professional Experience")
pdf.section_body("- ABPS Khabar – Journalist /
Reporter\n" "- DDR News – Reporter\n" "- Shakun
Times – News Contributor\n" "- Bharat 24 News –
Reporter") pdf.section_title("Skills")
pdf.section_body("- News Reporting\n" "- Field
Journalism\n" "- Content Writing\n" "-
Communication Skills\n" "- Video Reporting &
Anchoring\n" "- Research and Investigative
Journalism") # Save the PDF
[Link]("Ajay_Kumar_Gupta_Resume.pdf")