title: Django pass data into easy_pdf
body: <p>i have problem with passing data from view request into PDFTemplateView class.</p>
  
  <p>Package documentation: <a href="https://buildmedia.readthedocs.org/media/pdf/django-easy-pdf/latest/django-easy-pdf.pdf" rel="nofollow noreferrer">Django easy_pdf</a></p>
  
  <p>My files:</p>
  
  <hr>
  
  <p>url.py</p>
  
  <pre><code>urlpatterns = [
      url(r'^create_pdf/$', create_pdf, name='create_pdf'),
      url(r'^create_pdf/pdf/$', HelloPDFView.as_view())
  ]
  </code></pre>
  
  <hr>
  
  <p>views.py</p>
  
  <p>currently i redirect post request into created pdf file</p>
  
  <pre><code>@login_required
  def create_pdf(request):
      if request.method == "POST":
         #handle posted data
         data = computed data
         # how to pass calculated data into test.html ???
         return redirect('pdf/')
  return render(request, 'clients/create_pdf.html')
  
  
  from easy_pdf.views import PDFTemplateView
  class HelloPDFView(PDFTemplateView):
      template_name = 'render_pdf/test.html'
  </code></pre>
  
  <hr>
  
  <p>test.html</p>
  
  <pre><code>{% load static %}
  
  &lt;html&gt;
  &lt;body&gt;
      &lt;img src="{% static '/some.png' %}&gt; 
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm trying to get data from POST create_pdf view and then pass all collected data into test.html</p>
  
  <p>Thank you for your attention</p>