Generate previews of PDF files.
PHP ImageMagick library must be installed.
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 a URL of PDF file, and params
can have width
or height
properties or both.
* CSS not included
- Commercial support, adaptation and custom development.
Get help directly from project author. - Community support.
You can submit questions, bug reports and feature requests to issue tracker. It's free, just no SLA guaranteed. Pull requests are welcome!
Looking for a project maintainer.
Copyright © 2015, 2016 Mikhail Emelchenkov. Source code is distributed under CDDL 1.0 open source license.