Josh Josh - 1 year ago 80
PHP Question

DOMPDF - Defining DOMPDF_DPI on a case per case basis?

Is there something like:

$dompdf = new DOMPDF();

Instead of having to set in the, as I have multiple PDF files and they need different DPI.

Answer Source

If you are using the latest code from github then you can do the following:


$dompdf = new DOMPDF;
$dompdf->set_option( 'dpi' , '200' );

The full option list can be seen in the source.