You are here

pdf-reader-embed.html.twig in PDF Reader 8

<div class = 'pdf-reader'>
    {% if download_link and top %}
        <div class ="download-pdf link-pdf">
            <a href = "{{ download_link }}" download>{{ 'Click here to download'|t }}</a>
        </div>
    {% endif %}
    <div class = "pdf-reader-{{  service }}">
        <object id="pdf_reader" data= "{{file_url}}" type = "application/pdf" width= "{{width}}" height= "{{height}}">
            <embed src="{{file_url}}" width= "{{width}} " height= "{{height}}" type="application/pdf"><p> {{file_name}} </p>
            </embed>
        </object>
    </div>
    {% if download_link and bottom %}
        <div class ="download-pdf link-pdf">
            <a href = "{{ download_link }}" download>{{ 'Click here to download'|t }}</a>
        </div>
    {% endif %}
</div>






File

templates/pdf-reader-embed.html.twig
View source
  1. <div class = 'pdf-reader'>
  2. {% if download_link and top %}
  3. <div class ="download-pdf link-pdf">
  4. <a href = "{{ download_link }}" download>{{ 'Click here to download'|t }}</a>
  5. </div>
  6. {% endif %}
  7. <div class = "pdf-reader-{{ service }}">
  8. <object id="pdf_reader" data= "{{file_url}}" type = "application/pdf" width= "{{width}}" height= "{{height}}">
  9. <embed src="{{file_url}}" width= "{{width}} " height= "{{height}}" type="application/pdf"><p> {{file_name}} </p>
  10. </embed>
  11. </object>
  12. </div>
  13. {% if download_link and bottom %}
  14. <div class ="download-pdf link-pdf">
  15. <a href = "{{ download_link }}" download>{{ 'Click here to download'|t }}</a>
  16. </div>
  17. {% endif %}
  18. </div>