Skip to content

DPI doesn't change for new instance #3588

@vatsake

Description

@vatsake

For some reason if I create a second document, the dpi will not change. I takes previously set dpi...
$pdf->getOptions() has the new dpi, but the rendered document has old dpi (100).

  $pdf = new Dompdf();
  $pdf->set_option('dpi', 100);
  $pdf->loadHtml($html);
  $pdf->render();
  unset($pdf);

  $pdf = new Dompdf();
  $pdf->set_option('dpi', 200);
  $pdf->loadHtml($html);
  $pdf->render();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions