I have two or more variables that have base64 values which are PDFs. Is there anyway that I can merge all my variables and they become one PDF, beacause it is impossible to download more than 1 PDF via HTTP.
I will be really thankfull for your answers.
Old question but my solution. I found and use http://www.fpdf.org/en/script/script94.php
get base64 data from DB and create temp files, save names in one array.
$pdf = fopen ('../tmp/test'.$rowp['id'].'.pdf','w');
fwrite ($pdf,base64_decode($rowp['pdf']));
fclose ($pdf);
array_push($pdfs,'../tmp/test'.$rowp['id'].'.pdf');
then for names in the array
$merge->add($pdfs[$i]); //add next file
unlink($pdfs[$i]); //clear temp one
finally output to the browser
$merge->output();