PHPackages                             jmoont/pdfthumb - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. jmoont/pdfthumb

ActiveCraft-plugin[PDF &amp; Document Generation](/categories/documents)

jmoont/pdfthumb
===============

PDF thumbnail generation for Craft CMS 3

1.0.6(7y ago)74.0k7[9 issues](https://github.com/jmoont/pdfthumb/issues)[4 PRs](https://github.com/jmoont/pdfthumb/pulls)MITPHP

Since Jul 11Pushed 3y agoCompare

[ Source](https://github.com/jmoont/pdfthumb)[ Packagist](https://packagist.org/packages/jmoont/pdfthumb)[ RSS](/packages/jmoont-pdfthumb/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

PDFThumb plugin for Craft CMS 3.x
=================================

[](#pdfthumb-plugin-for-craft-cms-3x)

PDF thumbnail generation for Craft CMS 3

Usage
-----

[](#usage)

The `craft.PDFThumb.thumbnail()` template tag returns a URL to the generated thumbnail.

```
{% for myAsset in item.assetRef %}

{% endfor %}

```

Heavily based on

PThumb
======

[](#pthumb)

PThumb is a Craft plugin that generates thumbnail preview images for PDF documents. It's easy to drop into your templates, requires only the commmand-line version of ImageMagick (not the PHP bindings), and caches the generated thumbnails.

It's still very much a work in progress, so use it in production environments at your own risk.

Installation
------------

[](#installation)

1. Download the ZIP file
2. Unzip it and move the `pthumb` folder to `craft/plugins`
3. Install the plugin from the **Plugins** page of your control panel
4. Click on the **PThumb** link on the plugins page to configure the plugin

Configuration
-------------

[](#configuration)

SettingDescriptionStorage PathAbsolute or relative path to the storage directory for PDFs on the server, ex `~/craft/public/uploads/pdfs`Base URLURL to the storage path, ex `/uploads/pdfs`Usage
-----

[](#usage-1)

The `craft.PThumb.thumbnail()` template tag returns a URL to the generated thumbnail.

```

```

The arguments, in order, are:

ArgumentDescription**Asset**Required**Width**In pixels, *default: 250***Height**In pixels, *default: 250***Exact size**Force the canvas to exactly match the `height`/`width` specified by extending transparent (PNG) or white (JPG) space to the dimensions, useful for producing square images of rectangular documents, *default: false***File format**Options are 'png' or 'jpg', *default: png*Known issues
------------

[](#known-issues)

- Files must be limited to a single directory
- Files must be stored locally

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~53 days

Total

2

Last Release

2811d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c9927a77fa5f60e69ef46c9426f1529665777dc013af3a07950994aa62c2e1b2?d=identicon)[jmoont](/maintainers/jmoont)

---

Top Contributors

[![jmoont](https://avatars.githubusercontent.com/u/1529310?v=4)](https://github.com/jmoont "jmoont (12 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginpdfthumb

### Embed Badge

![Health badge](/badges/jmoont-pdfthumb/health.svg)

```
[![Health](https://phpackages.com/badges/jmoont-pdfthumb/health.svg)](https://phpackages.com/packages/jmoont-pdfthumb)
```

###  Alternatives

[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[enupal/snapshot

PDF or Image generation from a Url or HTML page

1137.9k](/packages/enupal-snapshot)[acclaro/translations

Easily launch and manage multilingual Craft websites without having to copy/paste content or manually track updates.

1229.5k](/packages/acclaro-translations)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
