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.
Class for rendering the barcode in PDF resource
float $_moduleSize = '0.5'
Module size rendering
integer $_page = '0'
Page number in PDF resource
_checkParams(
)
:
void
Check renderer parameters
_drawPolygon(
array $points, integer $color, boolean $filled
=
true
)
:
Draw a polygon in the rendering resource
_drawText(
string $text, float $size, array $position, string $font, integer $color, string $alignment
=
center, float $orientation
=
0
)
:
Draw a polygon in the rendering resource
_initRenderer(
)
:
void
Initialize the PDF resource
render(
)
:
mixed
Draw the barcode in the PDF, send headers and the PDF
setResource(
$pdf, $page
=
0
)
:
Zend_Barcode_Renderer
Set an image resource to draw the barcode inside
widthForStringUsingFontSize(
string $text, Zend_Pdf_Font $font, float $fontSize
)
:
float
Calculate the width of a string: in case of using alignment parameter in drawText