Forum


Replies: 10   Views: 229
Using dompdf with the native conversion plugin
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by Damian Rousseau  · 29-10-2024 - 09:28

I've find the problem, i come from my image (to big, it created infinit loop).

But now i'm facing another little issue : the style of my .docx isn't apply when it transform into .pdf

Is there something i'm doing wrong ?

$dompdf = new \Dompdf\Dompdf();
$transform = new \Phpdocx\Transform\TransformDocAdvNative();
$transform->transformDocument(public_path('contrats').'/contrat_formate.docx', public_path('contrats').'/contrat_formate_pdf.pdf', array('dompdf' => $dompdf));