| Last Updated |   | Ratings |   | Unique User Downloads |   | Download Rankings | 
2024-06-26 (9 months ago)   |  | Not yet rated by the users |  | Total: 14 This week: 1 |  | All time:  11,441 This week: 42  | 
| Version |   | License |   | PHP version |   | Categories | 
| pdfdatainjection 1.0 |  | Freeware |  | 5 |  | PHP 5, Documents | 
 | 
| Description |   | Author  | 
This package can generate documents in PDF form with input values. 
 
It can take a PDF form file and pass it to the pdftk program to fill the form inputs with given values. 
 
The resulting PDF document is saved to a new file.  |  | 
 
  | 
Example
<?php
 
    include ('includes/pdf_data_injection.class.php');
 
    $objPDF = new PDFDataInjection();
 
    $objPDF->setSourcePath('./origen/');
 
    $objPDF->setTempPath('./temp/');
 
    $objPDF->setDestinationPath('./dest/');
 
    $objPDF->setPDF('formulario.pdf');
 
    $datos = [
 
        'campo_edad' => '2',
 
        'campo_comunitario' => 'comunitario',
 
        'campo_ciudad' => 'Madrid',
 
    ];
 
    $objPDF->setFormData($datos);
 
 
    $objPDF->createFDF();
 
 
    $objPDF->insertData();
 
 
    $objPDF->injectDataInPDF();
 
 
    $FinalPDFName = $objPDF->getFinalPDFName();
 
 
 
 | 
 
Details
 
|   | 
Applications that use this package | 
  | 
No pages of applications that use this class were specified.
 If you know an application of this package, send a message to the author to add a link here.