{% load static %} {% load i18n %} {% load content_filters %} {% load pdf_filters %} {% load render_bundle from webpack_loader %} {# djlint:off H006,H007,H016,H025,H030,H031 #} {% render_bundle 'pdf' 'css' %} {% if amount_pages > 1 %}

{{ language.table_of_contents }}

{% endif %} {% for page, info in annotated_pages %} {% get_public_translation page language.slug as page_translation %}

{{ page_translation.title }}

{% if page.mirrored_page_first %} {{ page_translation.mirrored_translation_text|pdf_strip_fontstyles|pdf_truncate_links:80|safe }} {% endif %} {{ page_translation.content|pdf_strip_fontstyles|pdf_truncate_links:80|safe }} {% if not page.mirrored_page_first %} {{ page_translation.mirrored_translation_text|pdf_strip_fontstyles|pdf_truncate_links:80|safe }} {% endif %}
{% endfor %} {# djlint:on #}