Pdf/Style.php
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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Pdf
- Version
- $Id: Style.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Pdf_Style
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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties


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


array $_lineDashingPattern
It's array of numeric: array($on_length, $off_length, $on_length, $off_length, ...)
- Type
- array
Methods


__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 |