Re: [TurboGears] Re: HTML to PDF

2012-05-24 Thread 邓超
You can try phantomJS, it's very easy to convert html to PDF file. 2012/5/24 Matt > My apologies; I was using tg2 2.1.1, and the code seems to have changed to > pass a dictionary in 2.1.4. > > For those finding this thread after me via google, the solution I ended up > going with is using xhtml.

Re: [TurboGears] Re: HTML to PDF

2012-05-24 Thread Matt
My apologies; I was using tg2 2.1.1, and the code seems to have changed to pass a dictionary in 2.1.4. For those finding this thread after me via google, the solution I ended up going with is using xhtml.wsgi.PisaMiddleware (sample usage in https://github.com/chrisglass/xhtml2pdf/tree/master/demo/