{% load static %}

<html>
<head>
  <title>{{ filename }}</title>
  <style>
    @page {
      margin: 10mm 10mm;
      {% if paper_size == "a4" %}
        size: A4;
      {% elif paper_size == "letter" %}
        size: letter;
      {% endif %}
    }
    img.base-image {
      {% if paper_size == "a4" %}
        max-height: 257mm !important;
      {% elif paper_size == "letter" %}
        max-height: 239mm !important;
      {% endif %}
    }
  </style>
</head>
<body>
  <header class="fixed-running-element">
    {{ header_text }}
  </header>
  {% for resource_image_data in resource_images %}
    {% for resource_image in resource_image_data %}
      <div class="base-image-container">
        <img class="base-image" src="data:image/png;base64,{{ resource_image }}" />
      </div>
    {% endfor %}
  {% endfor %}
  <footer class="fixed-running-element">
    <img src="./img/logo-small.png"> - {{ resource.name }} - cs-unplugged.appspot.com{% url 'resources:resource' resource.slug %}
  </footer>
</body>
</html>

{% load static %}

<html>
<head>
  <title>{{ filename }}</title>
  <style>
    @page {
      margin: 10mm 10mm;
      {% if paper_size == "a4" %}
        size: A4;
      {% elif paper_size == "letter" %}
        size: letter;
      {% endif %}
    }
    img.base-image {
      {% if paper_size == "a4" %}
        max-height: 257mm !important;
      {% elif paper_size == "letter" %}
        max-height: 239mm !important;
      {% endif %}
    }
  </style>
</head>
<body>
  <header class="fixed-running-element">
    {{ header_text }}
  </header>
  {% for resource_image_data in resource_images %}
    {% for resource_image in resource_image_data %}
      <div class="base-image-container">
        <img class="base-image" src="data:image/png;base64,{{ resource_image }}" />
      </div>
    {% endfor %}
  {% endfor %}
  <footer class="fixed-running-element">
    <img src="./img/logo-small.png"> - {{ resource.name }} - csunplugged.org
  </footer>
</body>
</html>

Update URL at bottom of PDF resources
Update URL at bottom of PDF resources
