PDFThumb
Craft CMS plugin for generating preview images of PDF files.
How to use
Twig example*:
<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
properties or both.
* CSS styles not attached
Download
Development
License
CDDL 1.0 open-source license
System requirements
- Craft CMS 2.x
- PHP ImageMagick library
Технологии
Year of Production
2015