Re: django form converter to PDF

2016-10-03 Thread Ovnicraft
On Mon, Oct 3, 2016 at 7:05 AM, M Hashmi wrote: > Hi, > > I need some simple library to convert a simple quote form to PDF. I tried > xhtml2pdf and few others but need really simple process to use but creating > a fancy pdf. > I highly recommend you check http://wkhtmltopdf.org/ it works really

Re: django form converter to PDF

2016-10-03 Thread Walt
You can also check out the Python wrapper for pdftk. https://github.com/revolunet/pypdftk It allows you to take a pdf form and fill it dynamically and "flatten" it. Aside from that, Weasyprint also works pretty well. Walt On Monday, October 3, 2016 at 8:05:43 AM UTC-4, M Hashmi wrote: > > H

Re: django form converter to PDF

2016-10-03 Thread 06userit
Hello Mudassar, I agree with Ludovic : you could try weasyprint. I am using it on my project and am very satisfied. One hint : if I remember correctly, images on html page should be png in order for pdf to be generated by default. jpg support package is optional. See documentation https://media

Re: django form converter to PDF

2016-10-03 Thread M Hashmi
You are a rockstar in the group man. Let me try it and I will let you know about the results. I didn't get a change to look at Weasy_print. Regards, Mudassar On Mon, Oct 3, 2016 at 5:26 AM, ludovic coues wrote: > the xhtml2pdf doc point to weasyprint [1]. After a quick look at the > doc [2], it

Re: django form converter to PDF

2016-10-03 Thread ludovic coues
the xhtml2pdf doc point to weasyprint [1]. After a quick look at the doc [2], it look like a simple way to generate pdf from html file. If you already have a url on your django app rendering the quote, I would use weasyprint like that: from io import BytesIO from django.http.response impo

django form converter to PDF

2016-10-03 Thread M Hashmi
Hi, I need some simple library to convert a simple quote form to PDF. I tried xhtml2pdf and few others but need really simple process to use but creating a fancy pdf. If anyone knows please let me know. Regards, Mudassar -- You received this message because you are subscribed to the Google Gro