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.
Graphics State.
While some parameters in the graphics state can be set with individual operators, as shown in Table 4.7, others cannot. The latter can only be set with the generic graphics state operator gs (PDF 1.2).

__construct(
\Zend_Pdf_Element_Object $extGStateObject
=
null
)
:
void
Object constructor.
Name | Type | Description |
---|---|---|
$extGStateObject | \Zend_Pdf_Element_Object |
Exception | Description |
---|---|
\Zend_Pdf_Exception |

setAlpha(
float $alpha, string $mode
=
'Normal'
)
:
\Zend_Pdf_Canvas_Interface
Set the transparancy
$alpha == 0 - transparent $alpha == 1 - opaque
Transparency modes, supported by PDF: Normal (default), Multiply, Screen, Overlay, Darken, Lighten, ColorDodge, ColorBurn, HardLight, SoftLight, Difference, Exclusion
Name | Type | Description |
---|---|---|
$alpha | float | |
$mode | string |
Type | Description |
---|---|
\Zend_Pdf_Canvas_Interface |
Exception | Description |
---|---|
\Zend_Pdf_Exception |