On Sat, Mar 31, 2012 at 7:54 AM, Marc Aymerich <glicer...@gmail.com> wrote:
> On Sat, Mar 31, 2012 at 12:38 PM, Ganesh Kumar <bugcy...@gmail.com> wrote:
>> Hi guys,
>>
>> I am new to django reportlab. I want to generate pdf. file to select
>> mysql (table) content. How to proceed with reportlab, I can do with
>> some other tool.
>> please guide me. your valuable suggestion.
>>
>
> I'll use pisa, it allows you to generate pdf's from html source. So
> it's perfect for Django: write a template with html format, render the
> template and pass it to pisa.
>
> this snipet will show you how to do all the process:
> http://djangosnippets.org/snippets/659/

AFAIK pisa has been deprecated in favour of xhtml2pdf[0]. You can use
this[1] mixin in your CBV to deliver PDFs instead of regular html.

Regards,
    Ivan

[0] http://www.xhtml2pdf.com/
[1] 
https://github.com/rasca/django-enhanced-cbv/blob/master/enhanced_cbv/views/base.py#L4

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to