Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Usa_Block_Adminhtml_Dhl_Unitofmeasure
  • Mage_Usa_Helper_Data
  • Mage_Usa_Model_Shipping_Carrier_Abstract
  • Mage_Usa_Model_Shipping_Carrier_Abstract_Source_Mode
  • Mage_Usa_Model_Shipping_Carrier_Abstract_Source_Requesttype
  • Mage_Usa_Model_Shipping_Carrier_Dhl
  • Mage_Usa_Model_Shipping_Carrier_Dhl_International
  • Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Contenttype
  • Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Abstract
  • Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Doc
  • Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Freedoc
  • Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Freenondoc
  • Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Nondoc
  • Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Size
  • Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Unitofmeasure
  • Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf
  • Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page
  • Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
  • Mage_Usa_Model_Shipping_Carrier_Dhl_Source_Dutypaymenttype
  • Mage_Usa_Model_Shipping_Carrier_Dhl_Source_Freemethod
  • Mage_Usa_Model_Shipping_Carrier_Dhl_Source_Method
  • Mage_Usa_Model_Shipping_Carrier_Dhl_Source_Protection_Rounding
  • Mage_Usa_Model_Shipping_Carrier_Dhl_Source_Protection_Value
  • Mage_Usa_Model_Shipping_Carrier_Dhl_Source_Shipmenttype
  • Mage_Usa_Model_Shipping_Carrier_Fedex
  • Mage_Usa_Model_Shipping_Carrier_Fedex_Source_Dropoff
  • Mage_Usa_Model_Shipping_Carrier_Fedex_Source_Freemethod
  • Mage_Usa_Model_Shipping_Carrier_Fedex_Source_Method
  • Mage_Usa_Model_Shipping_Carrier_Fedex_Source_Packaging
  • Mage_Usa_Model_Shipping_Carrier_Ups
  • Mage_Usa_Model_Shipping_Carrier_Ups_Source_Container
  • Mage_Usa_Model_Shipping_Carrier_Ups_Source_DestType
  • Mage_Usa_Model_Shipping_Carrier_Ups_Source_Freemethod
  • Mage_Usa_Model_Shipping_Carrier_Ups_Source_Method
  • Mage_Usa_Model_Shipping_Carrier_Ups_Source_OriginShipment
  • Mage_Usa_Model_Shipping_Carrier_Ups_Source_Pickup
  • Mage_Usa_Model_Shipping_Carrier_Ups_Source_Type
  • Mage_Usa_Model_Shipping_Carrier_Ups_Source_Unitofmeasure
  • Mage_Usa_Model_Shipping_Carrier_Usps
  • Mage_Usa_Model_Shipping_Carrier_Usps_Source_Container
  • Mage_Usa_Model_Shipping_Carrier_Usps_Source_Freemethod
  • Mage_Usa_Model_Shipping_Carrier_Usps_Source_Machinable
  • Mage_Usa_Model_Shipping_Carrier_Usps_Source_Method
  • Mage_Usa_Model_Shipping_Carrier_Usps_Source_Size
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page

DHL International (API v1.4) Label Creation

Zend_Pdf_Page
Extended by 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
Methods summary
public
# __construct( Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page|string $param1, null $param2 = null, null $param3 = null )

Dhl International Label Creation Class Pdf Page constructor Create/Make a copy of pdf page

Dhl International Label Creation Class Pdf Page constructor Create/Make a copy of pdf page

Parameters

$param1
Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page|string
$param1
$param2
null
$param2
$param3
null
$param3
public string
# getContents( )

Get PDF Page contents

Get PDF Page contents

Returns

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

Calculate the width of given text in points taking into account current font and font-size

Parameters

$text
string
$text
$font
Zend_Pdf_Resource_Font
$font
$font_size
float
$font_size

Returns

float
public Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page
# drawText( string $text, float $x, float $y, string $charEncoding = '', mixed $align = Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page::ALIGN_LEFT )

Draw a line of text at the specified position.

Draw a line of text at the specified position.

Parameters

$text
string
$text
$x
float
$x
$y
float
$y
$charEncoding
string
$charEncoding (optional) Character encoding of source text. Defaults to current locale.
$align
mixed
$align

Returns

Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page

Throws

Zend_Pdf_Exception
public float
# drawLines( array $lines, integer $x, integer $y, integer $maxWidth, string $align = Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page::ALIGN_LEFT )

Draw a text paragraph taking into account the maximum number of symbols in a row. If line is longer - spit it.

Draw a text paragraph taking into account the maximum number of symbols in a row. If line is longer - spit it.

Parameters

$lines
array
$lines
$x
integer
$x
$y
integer
$y
$maxWidth
integer
$maxWidth - number of symbols
$align
string
$align

Returns

float

Throws

Zend_Pdf_Exception
Constants summary
string ALIGN_RIGHT 'right'
#

Text align constants

Text align constants

string ALIGN_LEFT 'left'
#
string ALIGN_CENTER 'center'
#
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0