PHPackages                             desarrollo-cespi/pm-p-d-f-kit-plugin - 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. desarrollo-cespi/pm-p-d-f-kit-plugin

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

desarrollo-cespi/pm-p-d-f-kit-plugin
====================================

symfony1 plugin that enables you to export any page as a PDF file by only adding the pdf format to the request

09.1kPHP

Since Dec 30Pushed 12y ago7 watchersCompare

[ Source](https://github.com/Desarrollo-CeSPI/pmPDFKitPlugin)[ Packagist](https://packagist.org/packages/desarrollo-cespi/pm-p-d-f-kit-plugin)[ RSS](/packages/desarrollo-cespi-pm-p-d-f-kit-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

pmPDFKitPlugin
==============

[](#pmpdfkitplugin)

The `pmPDFKitPlugin` plugin is a clone on jdpace's PDFKit library for Ruby (and Ruby on Rails). It allows you to export any page as PDF only adding the pdf format to the request. IE: calling

Requirements
------------

[](#requirements)

wkhtmltopdf library is required. You can download it from [wkhtmltopdf on Google code](http://code.google.com/p/wkhtmltopdf/).

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

[](#installation)

- Via composer:

```
{
  "require": {
    "desarrollo-cespi/pm-p-d-f-kit-plugin": "dev-master"
  }
}
```

- Or using git, from source.
- Enable the plugin in the project configuration:

```
// in config/ProjectConfiguration.class.php add:
$this->enablePlugin('pmPDFKitPlugin');
```

Usage
-----

[](#usage)

- Enable the pmPDFKitFilter

```
pm_pdfkit:
  class: pmPDFKitFilter
```

- By default, this plugin expects the wkhtmltopdf executable to be in /usr/local/bin/wkhtmltopdf. If it does not you can specify it in app.yml:

```
all:
  pm_pdf_kit:
    executable: /home/patricio/bin/wkhtmltopdf
```

- Clear the cache
- Finally, try to access any resource appending the .pdf format.

Advanced usage
--------------

[](#advanced-usage)

- Edit the default routes so any page can be transformed as pdf:

```
default_index:
  url:   /:module.:sf_format
  param: { action: index, sf_format: html }

default:
  url:   /:module/:action.:sf_format/*
  param: { sf_format: html }
```

- You can save any view to a file (instead of inline view in the browser) using the pmPDFKit class.
- Specify extra parameters for wkhtmltopdf appending them to the url:

```
http://somedomain.com/something/1.pdf?orientation=landscape&page-size=Letter&print-media-type=true
```

See all options executing `wkhtmltopdf -H` in the terminal.

TODO
----

[](#todo)

- fix images paths (because images are loaded from the stylesheets).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/95592?v=4)[Nahuel Cuesta Luengo](/maintainers/ncuesta)[@ncuesta](https://github.com/ncuesta)

---

Top Contributors

[![ncuesta](https://avatars.githubusercontent.com/u/95592?v=4)](https://github.com/ncuesta "ncuesta (5 commits)")

### Embed Badge

![Health badge](/badges/desarrollo-cespi-pm-p-d-f-kit-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/desarrollo-cespi-pm-p-d-f-kit-plugin/health.svg)](https://phpackages.com/packages/desarrollo-cespi-pm-p-d-f-kit-plugin)
```

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[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.1k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

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