PHPackages                             ghostfly/pdf-forms-filler - 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. ghostfly/pdf-forms-filler

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

ghostfly/pdf-forms-filler
=========================

Fill Acrobat forms easily using pure PHP ! 💪

1.2.0(8y ago)272.6k6MITPHPPHP &gt;=7.1.0

Since Dec 10Pushed 8y ago2 watchersCompare

[ Source](https://github.com/m1m1s1ku/PDFFormsFiller)[ Packagist](https://packagist.org/packages/ghostfly/pdf-forms-filler)[ Docs](https://github.com/Ghostfly/PDFFormsFiller)[ RSS](/packages/ghostfly-pdf-forms-filler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

PDFFormsFiller
==============

[](#pdfformsfiller)

[![forthebadge](https://camo.githubusercontent.com/ffa03a466c2be613abb2ff8a35ded2295354f490bc4681ab86b59edb2d74d2d7/687474703a2f2f666f7274686562616467652e636f6d2f696d616765732f6261646765732f676c7574656e2d667265652e737667)](http://forthebadge.com)[![forthebadge](https://camo.githubusercontent.com/37bfc3206551784f5c22f6c97ce345b037641090b059efac8647934662eb4537/687474703a2f2f666f7274686562616467652e636f6d2f696d616765732f6261646765732f636f6e7461696e732d6361742d676966732e737667)](http://forthebadge.com)

[![Build Status](https://camo.githubusercontent.com/6c972b5e7b4aa6d8badfcdba3297f1f24995fe3cbebd57ed97f2864cc61cdf41/68747470733a2f2f7472617669732d63692e6f72672f47686f7374666c792f504446466f726d7346696c6c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Ghostfly/PDFFormsFiller)[![Coverage Status](https://camo.githubusercontent.com/1d89b8ce0fd7db7feea38ce4554aab212b8ea548d5af3b0f42efff59bffd6aa7/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f47686f7374666c792f504446466f726d7346696c6c65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Ghostfly/PDFFormsFiller?branch=master)[![Total Downloads](https://camo.githubusercontent.com/e2382a56766652c7adeb884dfcf2da11909d1333c6a9df0b6b85c4ac765c8318/68747470733a2f2f706f7365722e707567782e6f72672f67686f7374666c792f7064662d666f726d732d66696c6c65722f646f776e6c6f616473)](https://packagist.org/packages/ghostfly/pdf-forms-filler)[![License](https://camo.githubusercontent.com/6525c806bb8c205e621f61ea4b8e1a200529d1253c806c1e0ce93e593d60ae33/68747470733a2f2f706f7365722e707567782e6f72672f67686f7374666c792f7064662d666f726d732d66696c6c65722f6c6963656e7365)](https://packagist.org/packages/ghostfly/pdf-forms-filler)[![composer.lock](https://camo.githubusercontent.com/d4133c4b020ab64d078a48641b31ab471031a1c00ff45c7ab5d1071a3d52fffc/68747470733a2f2f706f7365722e707567782e6f72672f67686f7374666c792f7064662d666f726d732d66696c6c65722f636f6d706f7365726c6f636b)](https://packagist.org/packages/ghostfly/pdf-forms-filler)

Fill Acrobat forms easily using pure PHP ! 💪

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

[](#requirements)

- PHP &gt;= 7.1.0

Install :
---------

[](#install-)

```
$ composer require ghostfly/pdf-forms-filler

```

Example :
---------

[](#example-)

- clone repository
- go to example folder
- composer install
- run [index.php](https://github.com/Ghostfly/PDFFormsFiller/blob/master/example/index.php)

Usage :
-------

[](#usage-)

You need to do a PDF Form with Acrobat, and the string to convert is given by this page :

[Find Form Field coordinates](https://www.setasign.com/products/setapdf-core/demos/find-form-field-coordinates/)

Use Converter who gives you a JSON Array containing fields with locations / page, in a form usable by the Generator

```
$converter = new Converter($string);
$converter->getPagesWithFieldsCount();
$json = $converter->formatFieldsAsJson($pages);

echo json;

```

Use PDF Generator with one array containing every field with id -&gt; value And one array containing every field with id -&gt; llx, lly, urx, ury, page

```
$pdfGenerator = new PDFGenerator($coords, $data, 'P', 'pt', 'A4');
$pdfGenerator->start($original, $dest);

```

If your original PDF is not handled by fpdf, you can convert it using this service :

[Convert PDF](https://docupub.com/pdfconvert/) with "Acrobat 4.0 (PDF 1.3)"

Don't care about form fields on file to send to generator, the locations are determined using the latest PDF format.

If you need a full example : [index.php](https://github.com/Ghostfly/PDFFormsFiller/blob/master/example/index.php).

Tests
-----

[](#tests)

```
$ ./vendor/bin/phpunit tests

```

Code coverage
-------------

[](#code-coverage)

```
$ ./vendor/bin/phpunit tests --coverage-text --coverage-clover build/logs/clover.xml

```

Done. ;)

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

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

Total

6

Last Release

3070d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a89a77efce4230933548a5e7a141a7d933a687c12cbe0b7f43992b2a438875f?d=identicon)[Mimisiku](/maintainers/Mimisiku)

---

Top Contributors

[![uplg](https://avatars.githubusercontent.com/u/5880133?v=4)](https://github.com/uplg "uplg (1 commits)")

---

Tags

acrobatfillformsfpdffpdipdfphpphppdfFormsfillfiller

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ghostfly-pdf-forms-filler/health.svg)

```
[![Health](https://phpackages.com/badges/ghostfly-pdf-forms-filler/health.svg)](https://phpackages.com/packages/ghostfly-pdf-forms-filler)
```

###  Alternatives

[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M488](/packages/mpdf-mpdf)[tmw/fpdm

PDF form filling using FPDM Class written by FPDF author Olivier

129623.6k3](/packages/tmw-fpdm)[atgp/factur-x

PHP library to manage your Factur-X / ZUGFeRD 2.0 PDF invoices files

138825.5k3](/packages/atgp-factur-x)

PHPackages © 2026

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