Example #1
0
 /**
  * Create a new PDF page, with A4 size and default font Helvetica, size 12
  *
  * @param string $size page size (see \ZendPdf\Page), default A4 size
  * @param float $unitConversion conversion factor for custom units, default self::UNITS_CENTIMETER
  */
 public function __construct($size = self::SIZE_A4, $unitConversion = self::UNITS_CENTIMETER)
 {
     parent::__construct($size);
     $this->setUnitConversion($unitConversion);
     $this->setFont(\ZendPdf\Font::fontWithName(\ZendPdf\Font::FONT_HELVETICA), 12);
 }