Thank you for your reply.
$ docx = new Phpdocx \ Create \ CreateDocx ();
$ docx-> addText ('Ceci est un test');
$ docx-> createDocx ('C: \ wamp64 \ Sample');
that works well, but when I want to use the pdf merge, it can't find it:
public static function test_merge () {
require_once JPATH_LIBRARIES. '/phpdocx/Classes/Phpdocx/Create/CreateDocx.php';
if (!file_exists('C:\wamp64\test3.pdf')) {
$ merge = new MultiMerge ();
$ merge-> mergePdf(array ('C:\wamp64\test1.pdf', 'C:\wamp64\test2.pdf'), 'C:\wamp64\test3.pdf');
}
}
I have this error: Fatal error: Class 'MultiMerge' not found
So the docx document version works well with the namespace version, but not the pdf MultiMerge .
In the classic version of phpdocx (without the namespace) any function but I have the problem of redeclaration of tcpdf.
There I no longer have a problem with class declaration TCPDF, but they cannot find the MultiMerge class
Can you help me?
Thank you