1
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.

ROMANIA_engineer
  • 51,252
  • 26
  • 196
  • 186
Nishanth V
  • 51
  • 1
  • 1
  • 5

0 Answers0