# save as PDF output_pdf_file = "resumes/resume_new.pdf" # Convert Markdown to HTML html_content = markdown(response_list[0]) # Convert HTML to PDF and save HTML(string=html_content).write_pdf(output_pdf_file, stylesheets=['resumes/style.css'])