Forum


Replies: 2   Views: 915
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

Hello,

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

Thanks

Nicolas

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

Hello,

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

Regards.

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

Hello

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

Sorry for the noise.

Nicolas