Skip to content

Commit

Permalink
Merge pull request #60 from DaveFerger/fix-margins-setter
Browse files Browse the repository at this point in the history
Correct Mpdf -> initContsructorParams margin parsing.
  • Loading branch information
kartik-v committed Jul 19, 2017
2 parents 5f3cf0d + 4724bcd commit 67980ab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,12 @@ public function setApi()
$this->options['format'] = $this->format;
$this->options['default_font_size'] = $this->defaultFontSize;
$this->options['default_font'] = $this->defaultFont;
$this->options['mgl'] = $this->marginLeft;
$this->options['mgr'] = $this->marginRight;
$this->options['mgt'] = $this->marginTop;
$this->options['mgb'] = $this->marginBottom;
$this->options['mgh'] = $this->marginHeader;
$this->options['mgf'] = $this->marginFooter;
$this->options['margin_left'] = $this->marginLeft;
$this->options['margin_right'] = $this->marginRight;
$this->options['margin_top'] = $this->marginTop;
$this->options['margin_bottom'] = $this->marginBottom;
$this->options['margin_header'] = $this->marginHeader;
$this->options['margin_footer'] = $this->marginFooter;
$this->options['orientation'] = $this->orientation;
if (isset($this->tempPath) && is_dir($this->tempPath)) {
$this->options['tempDir'] = $this->tempPath;
Expand Down

0 comments on commit 67980ab

Please sign in to comment.