diff --git a/src/Pdf.php b/src/Pdf.php index e6eb689..8635667 100755 --- a/src/Pdf.php +++ b/src/Pdf.php @@ -39,9 +39,10 @@ public function setOptions(array $options) : self public function addOptions(array $options) : self { - foreach ($this->parseOptions($options) as $option) { - $this->options[] = $option; - } + $this->options = array_merge( + $this->options, + $this->parseOptions($options) + ); return $this; }