Re: Saving browser output as pdf

2013-02-24 Thread Satinderpal Singh
On Mon, Feb 25, 2013 at 1:37 AM, Nick Apostolakis wrote: > On Mon, Feb 25, 2013 at 12:18 AM, Mark Furbee wrote: >>> >>> Django docs (pretty turse): >>> https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ >>> >>> From ReportLab site: >>> http://www.reportlab.com/software/documentation/ >>

Re: Saving browser output as pdf

2013-02-24 Thread Nick Apostolakis
On Mon, Feb 25, 2013 at 12:18 AM, Mark Furbee wrote: Django docs (pretty turse): https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ From ReportLab site: http://www.reportlab.com/software/documentation/ Here's a decent quick tutorial: http://www.blog.pythonlibrary.org/2010/03/08/a-sim

Re: Saving browser output as pdf

2013-02-24 Thread Satinderpal Singh
On Mon, Feb 25, 2013 at 12:18 AM, Mark Furbee wrote: > Django docs (pretty turse): > https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ > > From ReportLab site: > http://www.reportlab.com/software/documentation/ > > Here's a decent quick tutorial: > http://www.blog.pythonlibrary.org/2010/

Re: Saving browser output as pdf

2013-02-24 Thread Mark Furbee
Django docs (pretty turse): https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ >From ReportLab site: http://www.reportlab.com/software/documentation/ Here's a decent quick tutorial: http://www.blog.pythonlibrary.org/2010/03/08/a-simple-step-by-step-reportlab-tutorial/ Note that what you

Re: Saving browser output as pdf

2013-02-24 Thread Satinderpal Singh
On Sun, Feb 24, 2013 at 8:00 PM, Nick Apostolakis wrote: > On 24/02/2013 03:15 μμ, Satinderpal Singh wrote: >> >> Thanks a lot to all. I noted your suggestions, and will try to >> implement one which would be best suit to my requirement. >> >> By the way, i am trying to take pdf output from the mo

Re: Saving browser output as pdf

2013-02-24 Thread Mark Furbee
Mike DeWitt's answer is most appropriate. In you view define an argument 'pdf=False' and when returning the response from uou view, if pdf is False, return regular HttpResponse. If pdf is True, follw @Mike's reply to set response Content type to PDF. It is really easy to return what would be an htm

Re: Saving browser output as pdf

2013-02-24 Thread Nick Apostolakis
On 24/02/2013 03:15 μμ, Satinderpal Singh wrote: Thanks a lot to all. I noted your suggestions, and will try to implement one which would be best suit to my requirement. By the way, i am trying to take pdf output from the models and for that i required these libraries. Currently, i am using pisa

Re: Saving browser output as pdf

2013-02-24 Thread Russell Keith-Magee
On Sun, Feb 24, 2013 at 11:12 AM, Evan Brumley wrote: > Have a look at wkhtmltopdf for easy server side generation of PDFs. It's > not perfect, but it seems to be the best option out there at the moment. > I'm also hearing good things about PhantomJS, though I haven't tried it out > myself. Both o

Re: Saving browser output as pdf

2013-02-23 Thread Evan Brumley
Have a look at wkhtmltopdf for easy server side generation of PDFs. It's not perfect, but it seems to be the best option out there at the moment. I'm also hearing good things about PhantomJS, though I haven't tried it out myself. Both options are essentially headless versions of Webkit - they p

Re: Saving browser output as pdf

2013-02-23 Thread Mike Dewhirst
On 24/02/2013 4:04am, Satinderpal Singh wrote: How do i save the output from the browser as pdf. Is there any tool availabel with the django which can save the browser output to as pdf file. Chrome can save output as pdf all by itself. Other browsers (with plugins) might be able to do that as