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.
DetailsZend_Pdf_Color|null $_fillColor = 'null'Fill color.
Used to fill geometric shapes or text.
DetailsZend_Pdf_Resource_Font $_font = ''Current font
Detailsfloat $_fontSize = ''Font size
Detailsarray $_lineDashingPattern = ''Array which describes line dashing pattern.
It's array of numeric: array($on_length, $off_length, $on_length, $off_length, ...)
Detailsfloat $_lineDashingPhase = ''Line dashing phase
DetailsZend_Pdf_Element_Numeric $_lineWidth = ''Line width.
Details__construct(
Zend_Pdf_Style $anotherStyle
=
null
)
:
Create style.
DetailsgetFillColor(
)
:
Zend_Pdf_Color|nullGet fill color.
DetailsgetFont(
)
:
Zend_Pdf_Resource_FontGet current font.
DetailsgetFontSize(
)
:
floatGet current font size
DetailsgetLineColor(
)
:
Zend_Pdf_Color|nullGet line color.
DetailsgetLineDashingPattern(
)
:
arrayGet line dashing pattern
DetailsgetLineDashingPhase(
)
:
floatGet line dashing phase
DetailsgetLineWidth(
)
:
floatGet line width.
Detailsinstructions(
)
:
stringDump style to a string, which can be directly inserted into content stream
DetailssetFillColor(
Zend_Pdf_Color $color
)
:
Set fill color.
DetailssetFont(
Zend_Pdf_Resource_Font $font, float $fontSize
)
:
Set current font.
DetailssetFontSize(
float $fontSize
)
:
Modify current font size
DetailssetLineColor(
Zend_Pdf_Color $color
)
:
Set line color.
DetailssetLineDashingPattern(
array $pattern, float $phase
=
0
)
:
Set line dashing pattern
DetailssetLineWidth(
float $width
)
:
Set line width.
Details