skip to Main Content

How to take into account the color of the graphics of Docx files when converting them to PDF using phpword?

Here is the code I used to convert my docx files to PDF: <?php require_once 'vendor/autoload.php'; use PhpOfficePhpWordIOFactory as WordIOFactory; use PhpOfficePhpWordSettings; // Set PDF renderer. // Make sure you have `tecnickcom/tcpdf` in your composer dependencies. Settings::setPdfRendererName(Settings::PDF_RENDERER_TCPDF); // Path to…

VIEW QUESTION
Back To Top
Search