In php, after calling a webservice, I have some PDF content in variables.
I need to merge the pdf content in a single variable to make one single PDF and then post it to another webservice.
I found some solutions based on GS exec or FPDI but those solutions oblige me to save the files on the disk before merging it.
Is there a way to merge it in a variable without writing on the disk?
Code in Php (I have to merge the result of the foreach):
foreach($LogContent->DocumentsAnnexes->DocAnnexe as $parametre=>$value){
$content_brut=$value->fichier;
}
$content_maj=base64_decode($content_brut);
$OKMDocument->checkin(array('token' => $token, 'docPath' => $uuid, 'content' => $content_maj, 'comment' => 'Facture validée depuis le parapheur'));
(I can't add PDF example because of the size limit of the post)