FPDI does not support. I use ghostscript in linux and use shell_exec to execute and merge pdfs: <?php $command = "gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combined.pdf -dBATCH file1.pdf file2.pdf"; shell_exec($command); ?>