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.

array
$_lineDashingPattern= ''
Array which describes line dashing pattern.
It's array of numeric: array($on_length, $off_length, $on_length, $off_length, ...)

__construct(
\Zend_Pdf_Style $anotherStyle
=
null
)
:
void
Create style.
Name | Type | Description |
---|---|---|
$anotherStyle | \Zend_Pdf_Style |

getFont(
)
:
\Zend_Pdf_Resource_Font
Get current font.
Type | Description |
---|---|
\Zend_Pdf_Resource_Font | $font |

instructions(
)
:
string
Dump style to a string, which can be directly inserted into content stream
Type | Description |
---|---|
string |

setFillColor(
\Zend_Pdf_Color $color
)
:
void
Set fill color.
Name | Type | Description |
---|---|---|
$color | \Zend_Pdf_Color |

setFont(
\Zend_Pdf_Resource_Font $font, float $fontSize
)
:
void
Set current font.
Name | Type | Description |
---|---|---|
$font | \Zend_Pdf_Resource_Font | |
$fontSize | float |

setFontSize(
float $fontSize
)
:
void
Modify current font size
Name | Type | Description |
---|---|---|
$fontSize | float |

setLineColor(
\Zend_Pdf_Color $color
)
:
void
Set line color.
Name | Type | Description |
---|---|---|
$color | \Zend_Pdf_Color |

setLineDashingPattern(
array $pattern, float $phase
=
0
)
:
void
Set line dashing pattern
Name | Type | Description |
---|---|---|
$pattern | array | |
$phase | float |