We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c95f14c commit 455a2b7Copy full SHA for 455a2b7
src/MpdfRenderer.php
@@ -93,15 +93,15 @@ public static function getOptionsSupport(): array
93
94
private function setPageFormat(): void
95
{
96
- $size = $this->options->resolvePaperSize(LengthUnit::MILLIMETER_UNIT);
+ $size = $this->options->resolvePaperSize(LengthUnit::MILLIMETER);
97
$orientation = 'p';
98
99
$this->mpdf->_setPageSize($size, $orientation);
100
}
101
102
private function getMargin(): array
103
104
- $margin = Margin::fromOptions($this->options, LengthUnit::MILLIMETER_UNIT);
+ $margin = Margin::fromOptions($this->options, LengthUnit::MILLIMETER);
105
106
return [
107
'margin_top' => $margin->getRaw('marginTop'),
0 commit comments