Publish this in http://www.web2pyslices.com/home, everyone always asks for this problem.
[image: http://itjp.net.br] <http://itjp.net.br> http://itjp.net.b <http://itjp.net.br>r *Ovidio Marinho Falcao Neto* ovidio...@gmail.com Brasil 2017-06-26 7:01 GMT-03:00 J-Michel Angers <jean-michel.ga...@meggitt.com>: > SUPER ! > With thiw, it works exactly as I wish. > => A message appears "Do you want to open/save/saveAs ?", and after the > choice "Open", I see my PDF in the "Acrobat" tool. > Thank you very much for this advice :-) :-) > > Le lundi 26 juin 2017 07:12:49 UTC+2, Peter a écrit : > >> >> Have been outputting pdfs for a while and this is what works for me ... >> >> note, I don't close the pdf pdf.close? but this allows the user to >> either open or save the file anywhere on their machine (Linux and Windows) >> >> >> .... >> s_io = pdf.output(dest='S') >> response.headers['Content-Type']='application/pdf' >> response.headers['Content-Disposition'] = 'attachment; >> filename="%s"' % invc_filename >> raise HTTP(200, s_io, **response.headers) >> >>> >>> >>> -- > 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. > -- 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.