コード例 #1
0
 function __construct()
 {
     parent::__construct();
     $pw = 210;
     $ph = 297;
     // A4
     $h = 21;
     $w = 76;
     $this->format = array('name' => 'Sigel 3C', 'paper-size' => 'A4', 'metric' => 'mm', 'lMargin' => 24, 'tMargin' => 9, 'NX' => 2, 'NY' => 12, 'SpaceX' => 0, 'SpaceY' => 0, 'width' => $w, 'height' => $h, 'font-size' => 12);
     $this->tMarginName = 10;
     //      $this->setDebug ();
 }
コード例 #2
0
ファイル: NameTent.php プロジェクト: nielosz/civicrm-core
 /**
  */
 public function __construct()
 {
     parent::__construct();
     // A4
     $pw = 297;
     $ph = 210;
     $this->lMargin = 10;
     $this->tMargin = 0;
     $w = $pw - 2 * $this->lMargin;
     $h = $ph - 2 * $this->tMargin;
     $this->format = array('name' => 'A4 horiz', 'paper-size' => 'A4', 'metric' => 'mm', 'lMargin' => 0, 'tMargin' => 0, 'NX' => 1, 'NY' => 1, 'SpaceX' => 0, 'SpaceY' => 0, 'width' => $w, 'height' => $h, 'font-size' => 36);
     //      $this->setDebug ();
 }
コード例 #3
0
 function __construct()
 {
     parent::__construct();
     // A4
     $pw = 210;
     $ph = 297;
     $h = 50;
     $w = 75;
     $this->format = array('name' => 'Sigel 3C', 'paper-size' => 'A4', 'metric' => 'mm', 'lMargin' => ($pw - $w * 2) / 2, 'tMargin' => ($ph - $h * 5) / 2, 'NX' => 2, 'NY' => 5, 'SpaceX' => 0, 'SpaceY' => 0, 'width' => $w, 'height' => $h, 'font-size' => 12);
     $this->lMarginLogo = 20;
     $this->tMarginName = 20;
     //      $this->setDebug ();
 }
コード例 #4
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     // A4
     $pw = 210;
     $ph = 297;
     $h = 59.2;
     $w = 85.7;
     $this->format = array('name' => 'Avery 5395', 'paper-size' => 'A4', 'metric' => 'mm', 'lMargin' => 13.5, 'tMargin' => 3, 'NX' => 2, 'NY' => 4, 'SpaceX' => 15, 'SpaceY' => 8.5, 'width' => $w, 'height' => $h, 'font-size' => 12);
     $this->lMarginLogo = 20;
     $this->tMarginName = 20;
     //      $this->setDebug ();
 }