コード例 #1
0
ファイル: tcpdf.php プロジェクト: bmdevel/ezc
 /**
  * Create a new page
  *
  * Create a new page in the PDF document with the given width and height.
  *
  * @param float $width
  * @param float $height
  * @return void
  */
 public function createPage($width, $height)
 {
     if ($this->document === null) {
         $this->initialize();
     }
     // Create a new page, and create a reference in the pages array
     $this->document->AddPage('P', array($width, $height));
     $this->pages[] = $this->document->getPage();
 }
コード例 #2
0
ファイル: tcpdf.php プロジェクト: jackalope/jr_cr_demo
 /**
  * Create a new page
  *
  * Create a new page in the PDF document with the given width and height.
  * 
  * @param float $width 
  * @param float $height 
  * @return void
  */
 public function createPage($width, $height)
 {
     if ($this->document === null) {
         $this->document = new TCPDF('P', 'mm', array($width, $height), true, 'UTF-8');
         // We do this ourselves
         $this->document->SetAutoPageBreak(false);
         $this->document->setFont($this->fonts[$this->currentFont['name']][self::FONT_PLAIN], '', $this->currentFont['size']);
     }
     // Create a new page, and create a reference in the pages array
     $this->document->AddPage('P', array($width, $height));
     $this->pages[] = $this->document->getPage();
 }