2017 © Pedro PelĆ”ez
 

library pdf-forms-filler

Fill Acrobat forms easily using pure PHP !

image

ghostfly/pdf-forms-filler

Fill Acrobat forms easily using pure PHP !

  • Monday, December 11, 2017
  • by Ghostfly
  • Repository
  • 1 Watchers
  • 4 Stars
  • 45 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 22 % Grown

The README.md

PDFFormsFiller

forthebadge forthebadge, (*1)

Build Status Coverage Status Total Downloads License composer.lock, (*2)

Fill Acrobat forms easily using pure PHP ! šŸ’Ŗ, (*3)

Requirements

  • PHP >= 7.1.0

Install :

$ composer require ghostfly/pdf-forms-filler

Example :

  • clone repository
  • go to example folder
  • composer install
  • run index.php

Usage :

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

Find Form Field coordinates, (*5)

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

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

echo json;

Use PDF Generator with one array containing every field with id -> value And one array containing every field with id -> llx, lly, urx, ury, page, (*7)

$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 :, (*8)

Convert PDF with "Acrobat 4.0 (PDF 1.3)", (*9)

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

If you need a full example : index.php., (*11)

Tests

$ ./vendor/bin/phpunit tests

Code coverage

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

Done. ;), (*12)

The Versions

11/12 2017

dev-master

9999999-dev https://github.com/Ghostfly/PDFFormsFiller

Fill Acrobat forms easily using pure PHP !

  Sources   Download

MIT

The Requires

 

The Development Requires

by Léonard Cherouvrier

php forms pdf filler fill

11/12 2017

1.2.0

1.2.0.0 https://github.com/Ghostfly/PDFFormsFiller

Fill Acrobat forms easily using pure PHP !

  Sources   Download

MIT

The Requires

 

The Development Requires

by Léonard Cherouvrier

php forms pdf filler fill

11/12 2017

v1.1.1

1.1.1.0 https://github.com/Ghostfly/PDFFormsFiller

Fill Acrobat forms easily using pure PHP !

  Sources   Download

MIT

The Requires

 

The Development Requires

by Léonard Cherouvrier

php forms pdf filler fill

10/12 2017

v1.1

1.1.0.0 https://github.com/Ghostfly/PDFFormsFiller

Fill Acrobat forms easily using pure PHP !

  Sources   Download

MIT

The Requires

 

The Development Requires

by Léonard Cherouvrier

php forms pdf filler fill

10/12 2017

v1.0.2

1.0.2.0 https://github.com/Ghostfly/PDFFormsFiller

Fill Acrobat forms easily using pure PHP !

  Sources   Download

MIT

The Requires

 

by Léonard Cherouvrier

php forms pdf filler fill

10/12 2017

v1.0.1

1.0.1.0 https://github.com/Ghostfly/PDFFormsFiller

Fill Acrobat forms easily using pure PHP !

  Sources   Download

MIT

The Requires

 

by Léonard Cherouvrier

php forms pdf filler fill

10/12 2017

v1.0

1.0.0.0 https://github.com/Ghostfly/PDFFormsFiller

Fill Acrobat forms easily using pure PHP !

  Sources   Download

MIT

The Requires

 

by Léonard Cherouvrier

php forms pdf filler fill