PHPWord icon indicating copy to clipboard operation
PHPWord copied to clipboard

Images not showing in the PDF

Open raj-uimatic opened this issue 6 years ago • 2 comments

Images are not rendering in the PDF while conversion.

$domPdfPath = realpath(PHPWORD_BASE_DIR . '/../vendor/dompdf/dompdf');
\PhpOffice\PhpWord\Settings::setPdfRendererPath($domPdfPath);
\PhpOffice\PhpWord\Settings::setPdfRendererName('DomPDF');
$phpWord = \PhpOffice\PhpWord\IOFactory::load($mergeFilePath); 
$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'PDF');
$objWriter->save($destinationPath);
  • PHP version: 7.2.16
  • PHPWord version: 0.16

raj-uimatic avatar Apr 01 '19 09:04 raj-uimatic

i am also having an issue with this.....

m1stermanager avatar May 12 '20 18:05 m1stermanager

does anyone solve the issue ? i am stuck, can't find a solution...

Yxnx77 avatar May 02 '22 13:05 Yxnx77