Skip to content

DPI doesn't change for new instance #3588

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Sponsor
      SponsoredKunjungi sekarang
      Promo