|
| __construct ($param1, $param2=null, $param3=null) |
|
| getResources () |
|
| getContents () |
|
| getHeight () |
|
| getWidth () |
|
| __clone () |
|
| clonePage ($factory, &$processed) |
|
| getPageDictionary () |
|
| flush () |
|
| render (Zend_Pdf_ElementFactory_Interface $objFactory) |
|
| extractResources () |
|
| extractFonts () |
|
| extractFont ($fontName) |
|
| attachAnnotation (Zend_Pdf_Annotation $annotation) |
|
| drawCanvas (Zend_Pdf_Canvas_Interface $canvas, $x1, $y1, $x2=null, $y2=null) |
|
| setFillColor (Zend_Pdf_Color $color) |
|
| setLineColor (Zend_Pdf_Color $color) |
|
| setLineWidth ($width) |
|
| setLineDashingPattern ($pattern, $phase=0) |
|
| setFont (Zend_Pdf_Resource_Font $font, $fontSize) |
|
| setStyle (Zend_Pdf_Style $style) |
|
| getFont () |
|
| getFontSize () |
|
| getStyle () |
|
| saveGS () |
|
| restoreGS () |
|
| setAlpha ($alpha, $mode='Normal') |
|
| clipCircle ($x, $y, $radius, $startAngle=null, $endAngle=null) |
|
| clipEllipse ($x1, $y1, $x2, $y2, $startAngle=null, $endAngle=null) |
|
| clipPolygon ($x, $y, $fillMethod=Zend_Pdf_Page::FILL_METHOD_NON_ZERO_WINDING) |
|
| clipRectangle ($x1, $y1, $x2, $y2) |
|
| drawCircle ($x, $y, $radius, $param4=null, $param5=null, $param6=null) |
|
| drawEllipse ($x1, $y1, $x2, $y2, $param5=null, $param6=null, $param7=null) |
|
| drawImage (Zend_Pdf_Resource_Image $image, $x1, $y1, $x2, $y2) |
|
| drawLayoutBox ($box, $x, $y) |
|
| drawLine ($x1, $y1, $x2, $y2) |
|
| drawPolygon ($x, $y, $fillType=Zend_Pdf_Page::SHAPE_DRAW_FILL_AND_STROKE, $fillMethod=Zend_Pdf_Page::FILL_METHOD_NON_ZERO_WINDING) |
|
| drawRectangle ($x1, $y1, $x2, $y2, $fillType=Zend_Pdf_Page::SHAPE_DRAW_FILL_AND_STROKE) |
|
| drawRoundedRectangle ($x1, $y1, $x2, $y2, $radius, $fillType=Zend_Pdf_Page::SHAPE_DRAW_FILL_AND_STROKE) |
|
| drawText ($text, $x, $y, $charEncoding='') |
|
| pathClose () |
|
| pathLine ($x, $y) |
|
| pathMove ($x, $y) |
|
| rotate ($x, $y, $angle) |
|
| scale ($xScale, $yScale) |
|
| translate ($xShift, $yShift) |
|
| skew ($x, $y, $xAngle, $yAngle) |
|
| rawWrite ($data, $procSet=null) |
|
Definition at line 44 of file Page.php.
Attach resource to the canvas
Method returns a name of the resource which can be used as a resource reference within drawing instructions stream Allowed types: 'ExtGState', 'ColorSpace', 'Pattern', 'Shading', 'XObject', 'Font', 'Properties'
- Parameters
-
- Returns
- string
Definition at line 333 of file Page.php.
336 if ($this->_dictionary->Resources->$type ===
null) {
337 $this->_dictionary->Resources->touch();
340 $this->_dictionary->Resources->$type->touch();
345 foreach ($this->_dictionary->Resources->$type->getKeys() as $ResID) {
346 if ($this->_dictionary->Resources->$type->$ResID === $resObject) {
353 $newResName =
$type[0] . $idCounter++;
354 }
while ($this->_dictionary->Resources->$type->$newResName !==
null);
356 $this->_dictionary->Resources->$type->$newResName = $resObject;
357 $this->_objFactory->attach(
$resource->getFactory());
Returns dictionaries of used resources.
Used for canvas implementations interoperability
Structure of the returned array: array( <resTypeName> => array( <resName> => <Zend_Pdf_Resource object>="">, <resName> => <Zend_Pdf_Resource object>="">, <resName> => <Zend_Pdf_Resource object>="">, ... ), <resTypeName> => array( <resName> => <Zend_Pdf_Resource object>="">, <resName> => <Zend_Pdf_Resource object>="">, <resName> => <Zend_Pdf_Resource object>="">, ... ), ... 'ProcSet' => array() )
where ProcSet array is a list of used procedure sets names (strings). Allowed procedure set names: 'PDF', 'Text', 'ImageB', 'ImageC', 'ImageI'
Implements Zend_Pdf_Canvas_Interface.
Definition at line 416 of file Page.php.
418 $resources = array();
419 $resDictionary = $this->_dictionary->Resources;
421 foreach ($resDictionary->getKeys() as $resType) {
422 $resources[$resType] = array();
424 if ($resType ==
'ProcSet') {
425 foreach ($resDictionary->ProcSet->items as $procSetEntry) {
426 $resources[$resType][] = $procSetEntry->value;
429 $resMap = $resDictionary->$resType;
431 foreach ($resMap->getKeys() as $resId) {