title: Using wkhtmltopdf with dynamic templates
body: <p>I want to generate a PDf of a django template / view; that uses templatetags etc. </p>
  
  <p>From django-wkhtmltopdf's documentation:</p>
  
  <pre><code>from django.conf.urls.defaults import url, patterns
  from wkhtmltopdf.views import PDFTemplateView
  
  urlpatterns = patterns('',
      url(r'^pdf/$', PDFTemplateView.as_view(template_name='my_template.html',
                                             filename='my_pdf.pdf'), name='pdf'),
  )
  </code></pre>
  
  <p>Or they say in your own view:</p>
  
  <pre><code>from wkhtmltopdf.views import PDFTemplateView
  
  
  class MyPDF(PDFTemplateView):
      filename = 'my_pdf.pdf'
      template_name = 'my_template.html'
      cmd_options = {
          'margin-top': 3,
      }
  </code></pre>
  
  <p>If this was my view:</p>
  
  <pre><code>def download_report(request):
      vends = Vends.objects.all()
      return render(request, 'report_template.html', {'vends':vends}) 
  </code></pre>
  
  <p><em>How would I generate a report of this VIEW as its rendered? Not just the template, because that would be useless?</em></p>