function __construct($data = [])
 {
     parent::__construct('L', 'mm', 'A4');
     foreach ($data as $key => $val) {
         if (isset($this->{$key})) {
             $this->{$key} = $val;
         }
     }
 }
 public function __construct($data = [])
 {
     parent::__construct('P', 'mm', 'A4');
     $this->SetMargins(10, 10);
     foreach ($data as $key => $val) {
         if (isset($this->{$key})) {
             $this->{$key} = $val;
         }
     }
 }