Php – Convert docx to pdf using PHP


I am currently generating multiple .docx files using PHPWord. I need to find a way to combine these docx files and save them as 1 pdf file. Is there a way that this can be done?

Best Solution

Open the generated docx with PHPDOCX

    require_once 'phpdocx_pro/classes/';
    $docx = new TransformDoc();
    $html = $docx->getStrXHTML();

Also, you can export the docx to PDF with


Note this is not a free library