{% load pdf_tags %} {% load key_tags %}
{% if file.pdf %} {% if file.pdf.Info %}

PDF Information

{% if file.pdf.Info.Creator %} {% endif %} {% if file.pdf.Info.Producer %} {% endif %} {% if file.pdf.Info.Author %} {% endif %} {% if file.pdf.Keywords|getkey:"/Page" %} {% endif %}
Creator {{file.pdf.Info.Creator}}
Producer {{file.pdf.Info.Producer}}
Author {{file.pdf.Info.Author}}
Total Entropy {{file.pdf.Info|getkey:"Total Entropy"}}
Entropy In Streams {{file.pdf.Info|getkey:"Entropy In Streams"}}
Entropy Out of Streams {{file.pdf.Info|getkey:"Entropy Out Streams"}}
Count of "%% EOF" {{file.pdf.Info|getkey:"Count %% EOF"}}
PDF Header {{file.pdf.Info|getkey:"PDF Header"}}
Data After EOF {{file.pdf.Info|getkey:"Data After EOF"}} bytes
File Size {{file.size}} bytes
Number of Pages {{file.pdf.Keywords|getkey:"/Page"}}

{% endif %} {% if file.pdf.Dates %}

PDF Date(s)

{% for date in file.pdf.Dates %} {% endfor %}
Name Value
{{date.name}} {{date.value|datefmt}}

{% endif %} {% if file.pdf.Keywords %}

Keyword Counts

{% for keyword, count in file.pdf.Keywords.items %} {% endfor %}
Keyword Count
{{keyword}} {{count}}

{% endif %} {% if file.pdf.Annot_URLs %}

Link Annotation URLs

{% for url in file.pdf.Annot_URLs %} {{url}}
{% endfor %}
{% endif %} {% if file.pdf.JS_URLs %}

Javascript URLs

{% for url in file.pdf.JS_URLs %} {{url}}
{% endfor %}
{% endif %} {% if file.pdf.JSStreams %}

Javascript Streams

{% for obj in file.pdf.JSStreams %} {% if obj.Size == 1 %} {% else %} {% endif %}
Object ID {{obj|getkey:"Object ID"}}
Size{{obj.Size}} byte{{obj.Size}} bytes
Offset {{obj.Offset}}
Data Data Extracted
{{obj.Data|linebreaksbr}}
{% endfor %}
{% endif %} {% else %} Nothing to display. {% endif %}