Skip to content

Commit 56dff0e

Browse files
Resume Builder: include internships section in generated PDF
1 parent d4f80b8 commit 56dff0e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Resume Builder/resume_builder.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,20 @@ def generate_pdf():
232232
os.system(f"start {pdf_output_path}" if os.name == "nt" else f"open {pdf_output_path}")
233233
print(f"Resume generated: {pdf_output_path}")
234234

235+
# Internships
236+
if resume_data["internships"]:
237+
pdf.set_font('Arial', 'B', 12)
238+
pdf.cell(0, 10, "Internships", 0, 1)
239+
pdf.set_font('Arial', '', 11)
240+
for it in resume_data["internships"]:
241+
hdr = f"{it['role']} at {it['company']}"
242+
if it.get("location"):
243+
hdr += f" — {it['location']}"
244+
pdf.cell(0, 10, f"{hdr} ({it['start_date']} - {it['end_date']})", 0, 1)
245+
if it.get("details"):
246+
pdf.multi_cell(0, 10, "Highlights: " + ", ".join(it["details"]))
247+
248+
235249
# Main Menu using button_dialog from prompt_toolkit
236250
def interactive_menu():
237251
while True:

0 commit comments

Comments
 (0)