I ended up using WeasyPrint. It works great with css and page breaking.  
The only issue I ran into was cairo ran out of memory on one of my photos 
so I had to limit the photo size.

pip install pillow  #helps to install PIL in virtualenv and resolve link 
issues
pip install weasyprint 

 

> def printPDF(self, **kw)
>         from weasyprint import HTML
>
 

>         url = "http://";
>         env = []
>         env = request.environ
>         url += env['HTTP_HOST']
>         url += '/urlName?params=' + kw['params']
>         pdf = HTML(url).write_pdf()
>         return (pdf)
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to