/**
  * Constructor.
  *
  * @param mixed $param1
  * @param mixed $param2
  * @param mixed $param3
  *
  * @throws Zend_Pdf_Exception
  *
  * @return void
  */
 public function __construct($param1, $param2 = NULL, $param3 = NULL)
 {
     parent::__construct($param1, $param2, $param3);
     if ($param1 instanceof FFR_Pdf_PdfGenerator && $param2 === null && $param3 === null) {
         // Clone additional properties
         $this->setBorder($param1->borderTop, $param1->borderRight, $param1->borderBottom, $param1->borderLeft);
     }
 }
Beispiel #2
0
 public function __construct($source = null, $revision = null, $load = false)
 {
     parent::__construct($source, $revision, $load);
     $this->_currentTime = Zend_Pdf::pdfDate();
 }
Beispiel #3
0
 public function __construct($source = null, $revision = null, $load = false) {
   $this->font = Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA);
   $this->fontSize = 6;
   $this->interLign = 1.25;
   parent::__construct($source, $revision,$load);
 }
 /**
  * the constructor
  *
  * @param   integer $_contentFontSize
  * @param   integer $_footerFontSize
  * @param   integer $_contentLineHeight
  * @param   integer $_contentBlockLineHeight
  *      */
 public function __construct($_additionalOptions = array(), $_contentFontSize = NULL, $_footerFontSize = NULL, $_contentLineHeight = NULL, $_contentBlockLineHeight = NULL)
 {
     parent::__construct();
     // get config
     $config = Tinebase_Core::getConfig()->pdfexport;
     // add first page
     $this->pages[] = $this->newPage(Zend_Pdf_Page::SIZE_A4);
     $this->_pageNumber = 0;
     // set params
     if ($_footerFontSize !== NULL) {
         $this->footerFontSize = $_footerFontSize;
     }
     if ($_contentFontSize !== NULL) {
         $this->contentFontSize = $_contentFontSize;
     }
     if ($_contentLineHeight !== NULL) {
         $this->contentLineHeight = $_contentLineHeight;
     }
     if ($_contentBlockLineHeight !== NULL) {
         $this->contentBlockLineHeight = $_contentBlockLineHeight;
     }
     // set fonts
     if (!empty($config->fontpath) && file_exists($config->fontpath)) {
         if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) {
             Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . ' use font file: ' . $config->fontpath);
         }
         $boldpath = $config->get('fontboldpath', $config->fontpath);
         $embed = $config->fontembed ? 0 : Zend_Pdf_Font::EMBED_DONT_EMBED;
         // try to use ttf / type 1 / opentype / postscript fonts
         $this->_font = Zend_Pdf_Font::fontWithPath($config->fontpath, $embed);
         $this->_fontBold = Zend_Pdf_Font::fontWithPath($boldpath, $embed);
     } else {
         if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) {
             Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . ' use zend_pdf font: ' . $this->_fontName);
         }
         $this->_font = Zend_Pdf_Font::fontWithName($this->_fontName);
         $this->_fontBold = Zend_Pdf_Font::fontWithName($this->_fontNameBold);
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->Font = Zend_Pdf_Font::fontWithPath(zend_font_path() . 'ARIALUNI.TTF');
 }