PDFThumb

Craft CMS plugin for generating preview images of PDF files.

How to use

Twig exam­ple*:

<div class="pdf">
    {% set params = { width: 640 } %}
    <img src="{{ pdfthumb.get(block.file.first().url, params) }}">
    <div class="centered"><div>
        <a href="{{ block.file.first().url }}"><i class="fa fa-expand"></i> PDF</a>
    </div></div>
</div>

where block.file.first().url is the URL of the PDF file, and params may include width or height prop­er­ties or both.

Screenshot

* CSS styles not attached

Download

Development

License

CDDL 1.0 open-source license

System requirements

  • Craft CMS 2.x
  • PHP ImageMagick library

Технологии

Craft CMS PHP

Year of Production

2015