Class Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page
DHL International (API v1.4) Label Creation
- Zend_Pdf_Page
- Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page
Package: Mage\Usa
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Label/Pdf/Page.php
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Label/Pdf/Page.php
public
|
#
__construct(
Dhl International Label Creation Class Pdf Page constructor Create/Make a copy of pdf page |
public
string
|
|
public
float
|
#
getTextWidth( string $text, Zend_Pdf_Resource_Font $font, float $font_size )
Calculate the width of given text in points taking into account current font and font-size |
public
|
#
drawText( string $text, float $x, float $y, string $charEncoding = '', mixed $align =
Draw a line of text at the specified position. |
public
float
|
#
drawLines( array $lines, integer $x, integer $y, integer $maxWidth, string $align =
Draw a text paragraph taking into account the maximum number of symbols in a row. If line is longer - spit it. |
string |
ALIGN_RIGHT
|
'right' |
#
Text align constants |
string |
ALIGN_LEFT
|
'left' |
|
string |
ALIGN_CENTER
|
'center' |