PHPackages                             hamidgh83/preview-maker - 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. hamidgh83/preview-maker

ActiveProject[PDF &amp; Document Generation](/categories/documents)

hamidgh83/preview-maker
=======================

PreviewMaker is a standalone application written in pure PHP to create preview (PDF and image) from different file formats ranging from Microsoft documents to video formats.

v1.1.0(5y ago)041MITPHPPHP ^7.2.5

Since Aug 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/hamidgh83/preview-maker)[ Packagist](https://packagist.org/packages/hamidgh83/preview-maker)[ RSS](/packages/hamidgh83-preview-maker/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (8)Versions (4)Used By (0)

### The Package

[](#the-package)

[![Latest Stable Version](https://camo.githubusercontent.com/d1e42c4a679fddc393a96289a89f41c8d530c755ae82314678995bc5d356f31f/68747470733a2f2f706f7365722e707567782e6f72672f68616d6964676838332f707265766965772d6d616b65722f76)](//packagist.org/packages/hamidgh83/preview-maker) [![Total Downloads](https://camo.githubusercontent.com/3eb58f440e3ab701c57ce9d277fa09101cd08f3c629463959d60d56b1b56741b/68747470733a2f2f706f7365722e707567782e6f72672f68616d6964676838332f707265766965772d6d616b65722f646f776e6c6f616473)](//packagist.org/packages/hamidgh83/preview-maker) [![Latest Unstable Version](https://camo.githubusercontent.com/a9f2725d89cb3a8bb029aadeb2dac64764600bb357a651dcfc1c57eb30ef61a0/68747470733a2f2f706f7365722e707567782e6f72672f68616d6964676838332f707265766965772d6d616b65722f762f756e737461626c65)](//packagist.org/packages/hamidgh83/preview-maker) [![License](https://camo.githubusercontent.com/cf813b8b57344bbfa33cb711539427551d367f65c0f41333da0697a9ca983590/68747470733a2f2f706f7365722e707567782e6f72672f68616d6964676838332f707265766965772d6d616b65722f6c6963656e7365)](//packagist.org/packages/hamidgh83/preview-maker)

### Overview

[](#overview)

PreviewMaker is a standalone application written in pure PHP to create preview (PDF and image) from different file formats ranging from Microsoft documents to video formats.

### Requirements

[](#requirements)

You need to have a **Linux OS** with the following items installed:

- PHP v7.2.5 above
- OpenJDK
- LibreOffice v6.2.6.2 above
- FFmpeg

### Installation

[](#installation)

```
$ composer require hamidgh83/preview-maker
```

> **Note:** We are preparing a docker version for easier deployment.

### Supported Files

[](#supported-files)

PreviewMaker makes it easy to create image preview from Microsoft documents, PDF files and videos. Here is the list of supported *mime types*:

**Documents**

- "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
- "application/vnd.ms-excel",
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
- "application/vnd.ms-powerpoint", -"application/vnd.openxmlformats-officedocument.presentationml.presentation",
- "application/vnd.oasis.opendocument.text"

**PDF**

- "application/pdf"

**Videos**

- "video/3gpp",
- "video/mp4",
- "video/mpeg",
- "video/ogg",
- "video/quicktime",
- "video/webm",
- "video/x-m4v",
- "video/ms-asf",
- "video/x-ms-asf",
- "video/x-ms-wmv",
- "video/x-msvideo"

### Console commands

[](#console-commands)

**Creating preview from a file**

***Usage***

```
php bin/console.php preview [options] [--]

```

***Arguments***

ArgumentDescriptionfilepathPath to the file you want to make preview from***Options***

OptionDescription--pdfConvert given document to pdf-o, --output=OUTPUTPath to output file-h, --helpDisplay this help message-q, --quietDo not output any message-V, --versionDisplay this application version--ansiForce ANSI output--no-ansiDisable ANSI output-n, --no-interactionDo not ask any interactive question-vvv

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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 ~1 days

Total

2

Last Release

2155d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3264788?v=4)[Hamid](/maintainers/hamidgh83)[@hamidgh83](https://github.com/hamidgh83)

---

Top Contributors

[![hamidghorashi](https://avatars.githubusercontent.com/u/89512189?v=4)](https://github.com/hamidghorashi "hamidghorashi (39 commits)")[![hamidgh83](https://avatars.githubusercontent.com/u/3264788?v=4)](https://github.com/hamidgh83 "hamidgh83 (2 commits)")[![mohammadjavadz](https://avatars.githubusercontent.com/u/35491888?v=4)](https://github.com/mohammadjavadz "mohammadjavadz (1 commits)")

### Embed Badge

![Health badge](/badges/hamidgh83-preview-maker/health.svg)

```
[![Health](https://phpackages.com/badges/hamidgh83-preview-maker/health.svg)](https://phpackages.com/packages/hamidgh83-preview-maker)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M418](/packages/drupal-core-recommended)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M568](/packages/shopware-core)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)

PHPackages © 2026

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