本文整理汇总了PHP中Zend_Pdf::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Pdf::__construct方法的具体用法?PHP Zend_Pdf::__construct怎么用?PHP Zend_Pdf::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Pdf
的用法示例。
在下文中一共展示了Zend_Pdf::__construct方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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);
}
}
示例2: __construct
public function __construct($source = null, $revision = null, $load = false)
{
parent::__construct($source, $revision, $load);
$this->_currentTime = Zend_Pdf::pdfDate();
}
示例3: __construct
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);
}
示例4: __construct
/**
* 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);
}
}
示例5: __construct
public function __construct()
{
parent::__construct();
$this->Font = Zend_Pdf_Font::fontWithPath(zend_font_path() . 'ARIALUNI.TTF');
}