RE: Webservice return pdf

2012-05-31 Thread Sells, Fred
Here's how I merge .fdf with pdf def getPDFContent(assessment): completedfdf = getCompletedForm(assessment) pdffilename = getFilename(assessment, 'forms') +".pdf" pdftk = ["/usr/bin/pdftk" ,'pdftk'][os.name=='nt'] cmd = '%s %s fill_form - output - flatten' % (pdftk

Re: Webservice return pdf

2012-05-31 Thread Benedict Verheyen
On 28/05/2012 9:51, Madhu wrote: > Hi! all > I create client & through client i call the web service. > which returns pdf file, i want to stored that file directly. > I use this > response['Content-Disposition'] = 'attachment; filename= 'demo.pdf' > but it will ask the user to store the file, but i

Re: Webservice return pdf

2012-05-29 Thread francescortiz
a search for python write file migh help On Monday, May 28, 2012 9:51:59 AM UTC+2, Madhu wrote: > > Hi! all > I create client & through client i call the web service. > which returns pdf file, i want to stored that file directly. > I use this > response['Content-Disposition'] = 'attachment; file

Webservice return pdf

2012-05-28 Thread Madhu
Hi! all I create client & through client i call the web service. which returns pdf file, i want to stored that file directly. I use this response['Content-Disposition'] = 'attachment; filename= 'demo.pdf' but it will ask the user to store the file, but i want to store it automatically on server. c