Hello Jarrod! Please pull the last changes of branch v0.1.x or download the packed plugin for it branch here [1], so just add "response_filename" arg to REPORTPISA call, e.g:
return plugin_appreport.REPORTPISA(html = html, response_filename = 'change_my_name.pdf') {} [1] https://github.com/downloads/lucasdavila/web2py-appreport/web2py.plugin.appreport_v0.1.x.w2p Em sábado, 9 de junho de 2012 18h43min08s UTC-3, Jarrod escreveu: > > I have successfully used Lucas D'Avila's very helpful appreport > plugin<https://github.com/lucasdavila/web2py-appreport>to make pdf's of > invoices generated by my site. However I can't seem to > figure out how to specify the name that the pdf should be downloaded as. I > am generating the pdf by creating the html and css and then using the > REPORTPISA function to return the document. > > return plugin_appreport.REPORTPISA(html = html) > > Anyone have any insight on how to accomplish this? > > Thanks, > Jarrod > >