Replies: 2   Views: 560
Merge pdf documents
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by nschrevel  · 29-03-2022 - 10:00


We are trying to merge two PDF with PHPDOCX 12.5  :

$merge = new MultiMerge();
$merge->mergePdf([$headerPdf, $clientPdf], $outputPdf);

But we have an error :

Warning: Illegal string offset 'Parent'

$clientPDF has been clean up by pdfcairo
$headerPdf is created by PDPDocx

Both files can be open with Acrobat Reader without error.

We are using PHP 7.4



Posted by admin  · 29-03-2022 - 11:23


Please send to contact[at] both PDF files so we can check and test them.


Posted by nschrevel  · 29-03-2022 - 11:27


Looks like our second "PDF" was invalid (the one created with transformDocument) we created another one and merge wroked !

Sorry for the noise.