This script allows to concatenate PDF files that were produced by FPDF. The result is optimized:
identical fonts and images are not duplicated in the resulting document.
Note: links are not kept.
Example
<?php
require('fpdf_merge.php');
$merge = new FPDF_Merge();
$merge->add('doc1.pdf');
$merge->add('doc2.pdf');
$merge->output();
?>