PHP code example of qdequippe / phpdftk
1. Go to this page and download the library: Download qdequippe/phpdftk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
qdequippe / phpdftk example snippets
$pdftk = new \Qdequippe\PHPDFtk\PDFtk();
$filledPdf = $pdftk->fillForm(
pdfFilePath: 'path_to_pdf.pdf',
formDataFilePath: 'path_to_form_data.fdf', // or XFDF file,
flatten: true,
);
// $filledPdf = PDF filled with form data