import v2.0.0.0_RC3 | 2012-07-01

https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -16,24 +16,10 @@
* @package Zend_Pdf
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Style.php 16541 2009-07-07 06:59:03Z bkarwin $
* @version $Id: Style.php 18993 2009-11-15 17:09:16Z alexander $
*/
/** Zend_Pdf_Color */
require_once 'Zend/Pdf/Color.php';
/** Zend_Pdf_Element_Numeric */
require_once 'Zend/Pdf/Element/Numeric.php';
/** Zend_Pdf_Element_Array */
require_once 'Zend/Pdf/Element/Array.php';
/** Zend_Pdf_Resource_Font */
require_once 'Zend/Pdf/Resource/Font.php';
/**
* Style object.
* Style object doesn't directly correspond to any PDF file object.
@ -148,6 +134,7 @@ class Zend_Pdf_Style
*/
public function setLineWidth($width)
{
require_once 'Zend/Pdf/Element/Numeric.php';
$this->_lineWidth = new Zend_Pdf_Element_Numeric($width);
}
@ -160,11 +147,13 @@ class Zend_Pdf_Style
*/
public function setLineDashingPattern($pattern, $phase = 0)
{
require_once 'Zend/Pdf/Page.php';
if ($pattern === Zend_Pdf_Page::LINE_DASHING_SOLID) {
$pattern = array();
$phase = 0;
}
require_once 'Zend/Pdf/Element/Numeric.php';
$this->_lineDashingPattern = $pattern;
$this->_lineDashingPhase = new Zend_Pdf_Element_Numeric($phase);
}
@ -286,8 +275,10 @@ class Zend_Pdf_Style
}
if ($this->_lineDashingPattern !== null) {
require_once 'Zend/Pdf/Element/Array.php';
$dashPattern = new Zend_Pdf_Element_Array();
require_once 'Zend/Pdf/Element/Numeric.php';
foreach ($this->_lineDashingPattern as $dashItem) {
$dashElement = new Zend_Pdf_Element_Numeric($dashItem);
$dashPattern->items[] = $dashElement;