Join multiple PDF files into a single page PDF - positioned join using PHP [closed]
I've done this in the past with a combination of Ghostscript (to position an existing PDF page on a larger empty PDF page) and pdftk (to overlay/merge two equally-sized PDF pages into a new one).
Have a look at these answers (@Superuser.com) to get an idea how this works:
- Convert PDF 2 sides per page to 1 side per page
- Using Ghostscript to convert multi-page PDF into single JPG?
- Freeware to split a pdf's pages down the middle?
My procedure uses commandline and/or scripts. However, this could also be extended to do it programmatically from PHP with the Ghostscript .dll/.so