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).
package | Zend_Pdf |
---|---|
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Pdf_Resource |
__clone()
__construct(\Zend_Pdf_Element_Object $extGStateObject = null
)
If resource is not a Zend_Pdf_Element object, then stream object with specified value is generated.
inherited_from | \Zend_Pdf_Resource::__construct() |
---|
\Zend_Pdf_Element_Object
\Zend_Pdf_Exception |
---|
__construct(\Zend_Pdf_Element|string $resource)
If resource is not a Zend_Pdf_Element object, then stream object with specified value is generated.
\Zend_Pdf_Element
string
setAlpha(float $alpha, string $mode = 'Normal'
) : \Zend_Pdf_Canvas_Interface
$alpha == 0 - transparent $alpha == 1 - opaque
Transparency modes, supported by PDF: Normal (default), Multiply, Screen, Overlay, Darken, Lighten, ColorDodge, ColorBurn, HardLight, SoftLight, Difference, Exclusion
float
string
\Zend_Pdf_Exception |
---|
\Zend_Pdf_Canvas_Interface
$_objectFactory : \Zend_Pdf_ElementFactory_Interface
..) interacts with a PDF itself. It creates appropriate PDF objects, structures and sometime embedded files. Resources are referenced in content streams by names, which are stored in a page resource dictionaries.
Thus, resources must be attached to the PDF.
Resource abstraction uses own PDF object factory to store all necessary information. At the render time internal object factory is appended to the global PDF file factory.
Resource abstraction also cashes information about rendered PDF files and doesn't duplicate resource description each time then Resource is rendered (referenced).
$_resource : \Zend_Pdf_Element_Object