Im trying to convert a word file using PHPWORD library in PHP Laravel. Actually everything is fine with all of the files. BUt there are few files making such issues. I debugged it and dont know.
Here is a piece of code that im using
`$domPdfPath = base_path('vendor/dompdf/dompdf');
\PhpOffice\PhpWord\Settings::setPdfRendererPath($domPdfPath);
\PhpOffice\PhpWord\Settings::setPdfRendererName('DomPDF');
//Load word file
$Content = \PhpOffice\PhpWord\IOFactory::load($path . '/' . $file_name.'.docx');
//Save it into PDF
$PDFWriter = \PhpOffice\PhpWord\IOFactory::createWriter($Content,'PDF');
$PDFWriter->save($path . '/' . $file_name.'.pdf'); `