Pdf/Style.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Pdf
- Version
- $Id$
\Zend_Pdf_Style
Package: Zend_Pdf









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.
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

\Zend_Pdf_Color|null $_colorLine color.
Current color, used for lines and font outlines.
Details- Type
- \Zend_Pdf_Color | null

array $_lineDashingPatternArray which describes line dashing pattern.
It's array of numeric:
array($on_length, $off_length, $on_length, $off_length, ...)
Details- Type
- array
Methods

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

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

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

setFillColor(\Zend_Pdf_Color $color) : voidSet fill color.
Parameters
| Name | Type | Description |
|---|---|---|
| $color | \Zend_Pdf_Color |

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

setFontSize(float $fontSize) : voidModify current font size
Parameters
| Name | Type | Description |
|---|---|---|
| $fontSize | float |

setLineColor(\Zend_Pdf_Color $color) : voidSet line color.
Parameters
| Name | Type | Description |
|---|---|---|
| $color | \Zend_Pdf_Color |

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