html_data = os.path.abspath("apps/dashboard/templates/pdfdata.html")
response_data['status'] = False
pdfkit.from_file(html_data, 'out.pdf')
By using pdfkit and the above code, pdf generated successfully. Now I want to download this generated pdf.
html_data = os.path.abspath("apps/dashboard/templates/pdfdata.html")
response_data['status'] = False
pdfkit.from_file(html_data, 'out.pdf')
By using pdfkit and the above code, pdf generated successfully. Now I want to download this generated pdf.