Answer the question
In order to leave comments, you need to log in
Laravel print to pdf incorrect page display how to fix?
Good day, I encountered a strange behavior of the virtual printer in laravel for a pdf file , I
use laravel-dompdf
When printing the layout from the browser, everything looks fine
But when I send the same layout for printing through laravel-dompdf, I see an incorrect display
What I managed to get the same effect in the browser unchecking ignore scaling in ff
I send it to print like this:
$pdf = PDF::loadView('pdf.score',['ttf' => $ttf,'img' => $img, "field" => $field])->setPaper('a4')->setWarnings(false)
->setOptions(['isHtml5ParserEnabled' => true,'isPhpEnabled' => true, 'isFontSubsettingEnabled' => true,'isJavascriptEnabled' => false]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question