incuna/django-wkhtmltopdf — pull request #9 by sfllaw (2012-07-25 19:54:34+00:00)
Title: Refactoring of django-wkhtmltopdf

We needed to do quite a bit of refactoring to get django-wkhtmltopdf to work for us.

The big drivers were:
* Support most operations using PDFTemplateView.as_view() calls.
* Passing in extra options like ```---use-xserver```
* Compatibility with staticfiles and Django Compressor
* Compatibility with runserver mode

We've written tests to ensure that things still function.

There have been some small API changes, mostly to PDFTemplateView. We tried very hard to keep API compatibility, but there were some cases where providing fewer defaults were better. One of the places was to remove the default margins in PDFTemplateView to whatever the underlying binary defaults to.

The best way to review this pull request is to consult the changes in the docs/ directory.

We're using this code now, and after testing it should hit our production servers.

We'd rather that this didn't fork, so please leave comments if you'd like to see changes or spot bugs.

Thanks,
- Simon and Maxime