I have used html2pdf in the past and it is awfully easy! In one of my
apps, I had a requirement that each page be also available as pdf.
so
def view_func(self):
..normal processing
if request.GET.has_key('pdf'):
#Get the pdf template
html = StringIO.StringIO(template.render(Context(payload)))
result = StringIO.StringIO()
pdf = pisa.CreatePDF(html, result)
return HttpResponse(result.getvalue(), mimetype='application/
pdf')
On Mar 24, 2:25 am, coulix <[EMAIL PROTECTED]> wrote:
> Thanks !
> Easier than reportlab :)
> Greg
>
> On Mar 23, 7:37 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> > I updated pisa which now includes a complete Django example.
>
> >http://pypi.python.org/pypi/pisa/3.0.17
>
> > Enjoy it.
> > Dirk
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---