Beispiel #1
0
 function __construct($orientation = 'P', $unit = 'mm', $size = 'A4')
 {
     parent::__construct($orientation, $unit, $size);
     $this->lineHeightPadding = 30 / $this->k;
     $this->SetAutoPageBreak(false);
     stream_wrapper_register("var", 'PhpSigep\\Pdf\\VariableStream') or die("Failed to register protocol");
 }
Beispiel #2
0
 function __construct($orientation = 'P', $unit = 'mm', $size = 'A4')
 {
     parent::__construct($orientation, $unit, $size);
     $this->lineHeightPadding = 30 / $this->k;
     $this->SetAutoPageBreak(false);
     $existed = in_array("var", stream_get_wrappers());
     if (!$existed) {
         stream_wrapper_register("var", '\\PhpSigep\\Pdf\\VariableStream') or die("Failed to register protocol");
         //stream_wrapper_unregister("var");
     }
 }