django-easy-pdf
django-easy-pdf copied to clipboard
generate pdf in landscape mode?
I tried providing page width in css, however it didn't work. Is it possible to generate pdf in landscape mode ?
on get_context_data method,
return super(PDFTemplateViewClass, self).get_context_data(pagesize="A4 landscape",**kwargs)
on your template add this {% block layout_style %}
{% endblock %}
Thanks for the support 👍🏽