Forum


Replies: 10   Views: 171
Using dompdf with the native conversion plugin

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));