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.
Style object.
Style object doesn't directly correspond to any PDF file object. It's utility class, used as a container for style information. It's used by Zend_Pdf_Page class in draw operations.
Zend_Pdf_Color|null $_color = ''
Line color.
Current color, used for lines and font outlines.
Zend_Pdf_Color|null $_fillColor = 'null'
Fill color.
Used to fill geometric shapes or text.
Zend_Pdf_Resource_Font $_font = ''
Current font
float $_fontSize = ''
Font size
array $_lineDashingPattern = ''
Array which describes line dashing pattern.
It's array of numeric: array($on_length, $off_length, $on_length, $off_length, ...)
float $_lineDashingPhase = ''
Line dashing phase
Zend_Pdf_Element_Numeric $_lineWidth = ''
Line width.
__construct(
Zend_Pdf_Style $anotherStyle
=
null
)
:
Create style.
getFillColor(
)
:
Zend_Pdf_Color|null
Get fill color.
getFont(
)
:
Zend_Pdf_Resource_Font
Get current font.
getFontSize(
)
:
float
Get current font size
getLineColor(
)
:
Zend_Pdf_Color|null
Get line color.
getLineDashingPattern(
)
:
array
Get line dashing pattern
getLineDashingPhase(
)
:
float
Get line dashing phase
getLineWidth(
)
:
float
Get line width.
instructions(
)
:
string
Dump style to a string, which can be directly inserted into content stream
setFillColor(
Zend_Pdf_Color $color
)
:
Set fill color.
setFont(
Zend_Pdf_Resource_Font $font, float $fontSize
)
:
Set current font.
setFontSize(
float $fontSize
)
:
Modify current font size
setLineColor(
Zend_Pdf_Color $color
)
:
Set line color.
setLineDashingPattern(
array $pattern, float $phase
=
0
)
:
Set line dashing pattern
setLineWidth(
float $width
)
:
Set line width.