2017 © Pedro Peláez
 

library fpdm

PDF form filling using FPDM Class written by FPDF author Olivier for Laravel 5

image

shihjay2/fpdm

PDF form filling using FPDM Class written by FPDF author Olivier for Laravel 5

  • Sunday, June 24, 2018
  • by shihjay2
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Form filling

The FPDM class allows to fill out PDF forms, i.e. populate fields of a PDF file. It is developed by Olivier Plathey, author of the FDPF Library, and has been released as Skript 93. Initial adaptation for Composer was from codeshell and this was adapted for Laravel 5., (*1)

I created this repository for the following reasons: - make the current FPDM source available via composer - fix compatibility issues with PHP 7.x - bugfixing, (*2)

This repository only contains the separate php class written for form filling. If you are looking for a repository containing the main FPDF Library for Laravel 5, please head over to github.comcaioladislau/FPDF., (*3)

Once again, all credits to Olivier Plathey for providing an easy to use extension to his FPDF library!, (*4)

Version

Based on version 2.9 (2017-05-11) available from fpdf.org/en/script/script93.php., (*5)

Note: If you find that a new version has been hosted on fpdf.org, please do not hesitate to drop me a short note to make sure I do not miss it out., (*6)

Installation

Enter:, (*7)

composer require shihjay2/fpdf, (*8)

Usage

At the top of your controller: use Shihjay2\Fpdm\FPDM;, (*9)

and then: $pdf = new FPDM($output);, (*10)

Original Info Page

Information

Author: Olivier, (*11)

License: FPDF, (*12)

Description

This script allows to merge data into a PDF form. Given a template PDF with text fields, it's possible to inject values in two different ways: - from a PHP array - from an FDF file, (*13)

The resulting document is produced by the Output() method, which works the same as for FPDF., (*14)

Note: if your template PDF is not compatible with this script, you can process it with PDFtk this way:, (*15)

pdftk modele.pdf output modele2.pdf, (*16)

Then try again with modele2.pdf., (*17)

Example

This example shows how to merge data from an array:, (*18)

 'My name',
    'address' => 'My address',
    'city'    => 'My city',
    'phone'   => 'My phone number'
);

$pdf = new FPDM('template.pdf');
$pdf->Load($fields, false); // second parameter: false if field values are in ISO-8859-1, true if UTF-8
$pdf->Merge();
$pdf->Output();
?>

View the result here., (*19)

The Versions

24/06 2018

dev-master

9999999-dev https://github.com/shihjay2/fpdm

PDF form filling using FPDM Class written by FPDF author Olivier for Laravel 5

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel forms pdf fpdf fields fill fpdm populate

20/06 2018

2.9.2

2.9.2.0 https://github.com/shihjay2/fpdm

PDF form filling using FPDM Class written by FPDF author Olivier for Laravel 5

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel forms pdf fpdf fields fill fpdm populate

10/11 2017

dev-develop

dev-develop https://github.com/codeshell/fpdm

PDF form filling using FPDM Class written by FPDF author Olivier

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

forms pdf fpdf fields fill fpdm populate

10/11 2017

2.9.1

2.9.1.0 https://github.com/codeshell/fpdm

PDF form filling using FPDM Class written by FPDF author Olivier

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

forms pdf fpdf fields fill fpdm populate