API Documentation

Barcode/Renderer/Pdf.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Barcode
subpackage
Renderer
version
$Id: Pdf.php 22419 2010-06-11 16:29:08Z mikaelkael $
Classes
Zend_Barcode_Renderer_Pdf

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Barcode_Renderer_Pdf

Extends from
Zend_Barcode_Renderer_RendererAbstract
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Barcode
Properties
$_resource
$_page
$_moduleSize
Methods
setResource
_checkParams
render
_initRenderer
_drawPolygon
_drawText
widthForStringUsingFontSize

Description

Class for rendering the barcode in PDF resource

Properties

$_moduleSize

float $_moduleSize = '0.5'

Module size rendering

Details

$_moduleSize
float
visibility
protected
default
0.5
final
false
static
false

$_page

integer $_page = '0'

Page number in PDF resource

Details

$_page
integer
visibility
protected
default
0
final
false
static
false

$_resource

Zend_Pdf $_resource = 'null'

PDF resource

Details

$_resource
Zend_Pdf
visibility
protected
default
null
final
false
static
false

Methods

_checkParams

_checkParams( ) : void

Check renderer parameters

Details
visibility
protected
final
false
static
false

_drawPolygon

_drawPolygon( array $points, integer $color, boolean $filled = true ) :

Draw a polygon in the rendering resource

Arguments
$points
array
$color
integer
$filled
boolean
Details
visibility
protected
final
false
static
false

_drawText

_drawText( string $text, float $size, array $position, string $font, integer $color, string $alignment = center, float $orientation = 0 ) :

Draw a polygon in the rendering resource

Arguments
$text
string
$size
float
$position
array
$font
string
$color
integer
$alignment
string
$orientation
float
Details
visibility
protected
final
false
static
false

_initRenderer

_initRenderer( ) : void

Initialize the PDF resource

Details
visibility
protected
final
false
static
false

render

render( ) : mixed

Draw the barcode in the PDF, send headers and the PDF

Output
mixed
Details
visibility
public
final
false
static
false

setResource

setResource(  $pdf,  $page = 0 ) : Zend_Barcode_Renderer

Set an image resource to draw the barcode inside

Arguments
$pdf
$page
Output
Zend_Barcode_Renderer
Details
visibility
public
final
false
static
false
throw

widthForStringUsingFontSize

widthForStringUsingFontSize( string $text, Zend_Pdf_Font $font, float $fontSize ) : float

Calculate the width of a string: in case of using alignment parameter in drawText

Arguments
$text
string
$font
Zend_Pdf_Font
$fontSize
float
Output
float
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.