diff options
author | Simon Law <simon.law@ecometrica.com> | 2012-07-24 16:18:39 -0400 |
---|---|---|
committer | Simon Law <simon.law@ecometrica.com> | 2012-07-24 16:18:39 -0400 |
commit | a0da923c093f79e2205529c5f12fad620f3159a7 (patch) | |
tree | 58a4bba8a961b4bbedcc378eedab3e02d9185c6e /setup.py | |
parent | bde096a028c2705b8f56fb5fdcbbaed4b318862d (diff) | |
download | django-wkhtmltopdf-a0da923c093f79e2205529c5f12fad620f3159a7.tar.gz django-wkhtmltopdf-a0da923c093f79e2205529c5f12fad620f3159a7.tar.bz2 django-wkhtmltopdf-a0da923c093f79e2205529c5f12fad620f3159a7.zip |
PDFTemplateView.cmd_options contains all the options to pass to wkhtmltopdf
Before, command-line arguments were class-based. Unfortunately, this
means that you cannot add new command-line arguments without
subclassing.
Instead, PDFTemplateView.cmd_options is a dictionary of all
command-line arguments. PDFTemplateView.as_view(cmd_options={...}) now
works as expected.
!!!! WARNING !!!!
cmd_options is now empty, leaving wkhtmltopdf with its default
behaviour. Explicitly add the options you want. Existing subclasses of
PDFTemplateView will now break, but a PendingDeprecationWarning will be
issued. Margins will now be wkhtmltopdf's default of 10mm.
PdfTemplateView contains a compatibility shim with the old default
values for margins and orientation.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions