I have to use a command line order to merge two pdf's, 'pdftk...'. I have a controller that creates and returns the original pdf, but instead of that i need to write the pdf to some place, then execute the command and return the result.
I've been searching for help in the group and in the documentation but i'm not able to guess anything. My code looks like this: [...] # Creamos el documento fichero = StringIO.StringIO() documento = CrearPDF(fichero, u'...) [...] documento.guardar() pdf = fichero.getvalue() fichero.close() pylons.response.headers['Content-Type'] = 'application/pdf' pylons.response.headers['Content-Disposition'] = 'attachment;filename=informe.pdf' return(pdf) Anyone can help me? The idea is write down the file to a 'temp' folder and then return the result of the command, deleteing everything after. Thanx in advance. -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

