@@ -214,7 +214,21 @@ def generate_pdf():
214
214
pdf .cell (0 , 10 , proj ["name" ], 0 , 1 )
215
215
pdf .multi_cell (0 , 10 , proj ["description" ])
216
216
pdf .cell (0 , 10 , f"Technologies Used: { proj ['technologies' ]} " , 0 , 1 )
217
+ # Internships
218
+ if resume_data ["internships" ]:
219
+ pdf .set_font ('Arial' , 'B' , 12 )
220
+ pdf .cell (0 , 10 , "Internships" , 0 , 1 )
221
+ pdf .set_font ('Arial' , '' , 11 )
222
+ for it in resume_data ["internships" ]:
223
+ hdr = f"{ it ['role' ]} at { it ['company' ]} "
224
+ if it .get ("location" ):
225
+ hdr += f" — { it ['location' ]} "
226
+ pdf .cell (0 , 10 , f"{ hdr } ({ it ['start_date' ]} - { it ['end_date' ]} )" , 0 , 1 )
227
+ if it .get ("details" ):
228
+ pdf .multi_cell (0 , 10 , "Highlights: " + ", " .join (it ["details" ]))
229
+
217
230
231
+
218
232
# Certifications
219
233
pdf .set_font ('Arial' , 'B' , 12 )
220
234
pdf .cell (0 , 10 , "Certifications" , 0 , 1 )
@@ -237,19 +251,7 @@ def generate_pdf():
237
251
os .system (f"start { pdf_output_path } " if os .name == "nt" else f"open { pdf_output_path } " )
238
252
print (f"Resume generated: { pdf_output_path } " )
239
253
240
- # Internships
241
- if resume_data ["internships" ]:
242
- pdf .set_font ('Arial' , 'B' , 12 )
243
- pdf .cell (0 , 10 , "Internships" , 0 , 1 )
244
- pdf .set_font ('Arial' , '' , 11 )
245
- for it in resume_data ["internships" ]:
246
- hdr = f"{ it ['role' ]} at { it ['company' ]} "
247
- if it .get ("location" ):
248
- hdr += f" — { it ['location' ]} "
249
- pdf .cell (0 , 10 , f"{ hdr } ({ it ['start_date' ]} - { it ['end_date' ]} )" , 0 , 1 )
250
- if it .get ("details" ):
251
- pdf .multi_cell (0 , 10 , "Highlights: " + ", " .join (it ["details" ]))
252
-
254
+
253
255
254
256
# Main Menu using button_dialog from prompt_toolkit
255
257
def interactive_menu ():
0 commit comments