PHPackages                             mugo/mugo-wkhtmltopdf - 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. mugo/mugo-wkhtmltopdf

ActiveEzpublish-legacy-extension[PDF &amp; Document Generation](/categories/documents)

mugo/mugo-wkhtmltopdf
=====================

eZ Publish Legacy extension which integrates the phpwkhtmltopdf library into eZ Publish to provide the basis for a solution for generating PDFs using eZ Publish templates and content stored within eZ Publish

2234PHP

Since Aug 28Pushed 10y ago11 watchersCompare

[ Source](https://github.com/mugoweb/mugo_wkhtmltopdf)[ Packagist](https://packagist.org/packages/mugo/mugo-wkhtmltopdf)[ RSS](/packages/mugo-mugo-wkhtmltopdf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Mugo wkhtmltopdf
================

[](#mugo-wkhtmltopdf)

Mugo wkhtmltopdf is an eZ Publish Legacy extension which integrates the phpwkhtmltopdf library into eZ Publish to provide the basis for a solution for generating PDFs using eZ Publish templates and content stored within eZ Publish.

- [Copyright](COPYRIGHT)
- [License](LICENSE)

Composer Installation
---------------------

[](#composer-installation)

1. Install the package through [composer](http://getcomposer.org):

```
composer require mugo/mugo-wkhtmltopdf dev-master;

```

2. Activate the extension for all siteaccesses using `settings/override/site.ini.append.php` by manually adding the extension name 'mugo\_wkhtmltopdf' to \[ExtensionSettings\] ActiveExtensions\[\] settings array. Here is an example:

```
[ExtensionSettings]
ActiveExtensions[]
ActiveExtensions[]=mugo_wkhtmltopdf

```

3. Regenerate the autoloads array using php command: `php ./bin/php/ezpgenerateautoloads.php;`
4. Clear all caches using php command: `php ./bin/php/ezcache.php --clear-all;`

Manual Installation
-------------------

[](#manual-installation)

1. Extract the contents under the extension/ directory of your eZ Publish installation
2. Activate the extension for all siteaccesses using `settings/override/site.ini.append.php` by manually adding the extension name 'mugo\_wkhtmltopdf' to \[ExtensionSettings\] ActiveExtensions\[\] settings array. Here is an example:

```
[ExtensionSettings]
ActiveExtensions[]
ActiveExtensions[]=mugo_wkhtmltopdf

```

3. Regenerate the autoloads array using php command: `php ./bin/php/ezpgenerateautoloads.php;`
4. Clear all caches using php command: `php ./bin/php/ezcache.php --clear-all;`

Testing Installation
--------------------

[](#testing-installation)

You can test it by accessing

Note: *The extension uses the SiteURL in site.ini setting to generate the pdf, please make sure it is correct pointing to the current host url.*

Installing wkhtmltopdf on CentOS
--------------------------------

[](#installing-wkhtmltopdf-on-centos)

```
yum install fontconfig libXrender libXext xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi freetype libpng zlib libjpeg-turbo openssl;
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm;
rpm -ivh wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm;
ln -s /usr/local/bin/wkhtmltopdf /usr/bin/;

```

If SELinux is running, this must be enabled or wkhtmltopdf will segfault:

```
setsebool -P httpd_execmem 1;

```

Install this file at /etc/fonts/conf.d/10-wkhtmltopdf.conf to improve text quality

```

   rgb

   true

   hintslight

   true

      lcddefault

```

Optional Image Quality Settings
-------------------------------

[](#optional-image-quality-settings)

We need to use high resolutions images, we can also improve the image quality by changing the transparent to a solid color.

Change the image settings in a settings override file: `image.ini.append.php`

```
[ImageMagick]
...
Filters[]=background=-background %1
Filters[]=flatten=-flatten
...
[sample_pdf_image]
Filters[]
Filters[]=background=#eee
Filters[]=flatten

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

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

---

Top Contributors

[![peterkeung](https://avatars.githubusercontent.com/u/575638?v=4)](https://github.com/peterkeung "peterkeung (2 commits)")[![brookinsconsulting](https://avatars.githubusercontent.com/u/617031?v=4)](https://github.com/brookinsconsulting "brookinsconsulting (1 commits)")[![thiagocamposviana](https://avatars.githubusercontent.com/u/353112?v=4)](https://github.com/thiagocamposviana "thiagocamposviana (1 commits)")

### Embed Badge

![Health badge](/badges/mugo-mugo-wkhtmltopdf/health.svg)

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

###  Alternatives

[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.2k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)[setasign/tfpdf

This class is a modified version of FPDF that adds UTF-8 support. The latest version is based on FPDF 1.85.

426.1M30](/packages/setasign-tfpdf)[aspera/xlsx-reader

Spreadsheet reader library for XLSX files

52742.2k5](/packages/aspera-xlsx-reader)

PHPackages © 2026

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