PHPackages                             robbertkl/simplepdf - 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. robbertkl/simplepdf

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

robbertkl/simplepdf
===================

Simple extension of ZendPdf, allowing top-to-bottom geometry using arbitrary units (e.g. inches or centimeters)

v1.0.2(9y ago)11.2k1MITPHPPHP &gt;=5.3

Since Dec 6Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (5)Used By (0)

SimplePdf
=========

[](#simplepdf)

[![Latest Stable Version](https://camo.githubusercontent.com/d2c70ff81cdd0ae1731d4beb8c0eaa5671f7446448fd321a17f8f38551932172/68747470733a2f2f706f7365722e707567782e6f72672f726f62626572746b6c2f73696d706c657064662f762f737461626c652e706e67)](https://packagist.org/packages/robbertkl/simplepdf)

Internal PDF geometry (and therefore ZendPdf as well) uses "points" (1/72 of an inch), with \[0, 0\] being the bottom left corner of a page. This library, which extends ZendPdf, changes this by using arbitrary units (e.g. inches or centimeters) and going from top-to-bottom, which makes much more sense from a user's persepective. Also, very basic functionality has been added, like text alignment, margins and word wrap.

SimplePdf is [PSR-0](http://www.php-fig.org/psr/psr-0/), [PSR-1](http://www.php-fig.org/psr/psr-1/) and [PSR-2](http://www.php-fig.org/psr/psr-2/) compliant.

[Semantic Versioning](http://semver.org/) is used for releases / tags.

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

[](#requirements)

- PHP 5.3 or newer
- [ZendPdf](https://github.com/zendframework/ZendPdf) component, which it extends

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

[](#installation)

The easiest way to install is using [Composer](http://getcomposer.org) / [Packagist](https://packagist.org/packages/robbertkl/simplepdf) by adding this to you `composer.json` file:

```
"require": {
    "robbertkl/simplepdf": "dev-master"
}
```

Alternatively, you could manually include/autoload the appriate files from the `classes/` dir.

Documentation
-------------

[](#documentation)

See the [examples/](examples/) dir for usage examples. Also, check out the [API documentation](http://robbertkl.github.io/simplepdf/), generated using [ApiGen](http://apigen.org).

Known Limitations
-----------------

[](#known-limitations)

- The extension is not complete at all; only specific methods (to accommodate my needs) have been overridden to handle custom units + top-to-bottom geometry
- The word-wrap code is still pretty basic; for example, it doesn't do word-breaking or handle certain border cases
- Unfortunately, ZendPdf was kicked out of ZF2, and doesn't seem to be maintained (although it still works fine)

Authors
-------

[](#authors)

- Robbert Klarenbeek,

License
-------

[](#license)

SimplePdf is published under the [MIT License](http://www.opensource.org/licenses/mit-license.php).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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 ~298 days

Total

4

Last Release

3648d ago

Major Versions

v0.1.0 → v1.0.02013-12-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/59409a0314bb38d609f7c530f9ce46f1384548ea41722643d09c56a6aa91a7a2?d=identicon)[robbertkl](/maintainers/robbertkl)

---

Top Contributors

[![robbertkl](https://avatars.githubusercontent.com/u/5704510?v=4)](https://github.com/robbertkl "robbertkl (7 commits)")

---

Tags

pdf

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/robbertkl-simplepdf/health.svg)

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

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[tecnickcom/tcpdf

TCPDF is a PHP class for generating PDF documents and barcodes.

4.5k101.8M473](/packages/tecnickcom-tcpdf)[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M493](/packages/mpdf-mpdf)[knplabs/knp-snappy

PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage.

4.5k68.3M56](/packages/knplabs-knp-snappy)[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)

PHPackages © 2026

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