I have a PHP script that uses tcpdf library to generate a PDF document that is then attached to an email and sent. I need to repeat the document 4 times on a single A4 sheet, ie print 4 up on one sheet. I can use the fpdi library to open an existing PDF document and place it several times in a new PDF using $pdf->setSourceFile('mypdf.pdf'). Is it possible to set the source from a binary stream rather than file?
Thanks