Hello everyone, i'm generating a PDF using pdfkit and i'd like my function to force the download of the pdf file i'm making.
Here's some simple code demonstrating the PDF being made in memory: def make_pdf(): import pdfkit pdf = pdfkit.from_string("test", False) return pdf Ideally i would like to have an "export" button on my page and have that function called and then download the PDF i have made. Thank you in advance! Jason -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.