diff --git a/src/BrowsershotRenderer.php b/src/BrowsershotRenderer.php index d6a75b5..0af845f 100644 --- a/src/BrowsershotRenderer.php +++ b/src/BrowsershotRenderer.php @@ -48,9 +48,9 @@ public function render(Html $html, Css $css, Options $options, Config $config = $this->options = $options; $this->config = $config ?? $this->config; - [$paperWidth, $paperHeight] = $this->options->resolvePaperSize(LengthUnit::MILLIMETER_UNIT); + [$paperWidth, $paperHeight] = $this->options->resolvePaperSize(LengthUnit::MILLIMETER); - $margin = Margin::fromOptions($this->options)->allRawIn(LengthUnit::MILLIMETER_UNIT); + $margin = Margin::fromOptions($this->options)->allRawIn(LengthUnit::MILLIMETER); $browsershot = Browsershot::html($this->html()) ->newHeadless()