Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ($width, $height) | |
getResources () | |
getContents () | |
getHeight () | |
getWidth () | |
![]() | |
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) | |
Protected Member Functions | |
_addProcSet ($procSetName) | |
_attachResource ($type, Zend_Pdf_Resource $resource) | |
![]() | |
_addProcSet ($procSetName) | |
_attachResource ($type, Zend_Pdf_Resource $resource) | |
Protected Attributes | |
$_procSet = array() | |
$_width | |
$_height | |
$_resources | |
![]() | |
$_contents = '' | |
$_font = null | |
$_fontSize | |
$_style = null | |
$_saveCount = 0 | |
Definition at line 32 of file Canvas.php.
__construct | ( | $width, | |
$height | |||
) |
|
protected |
Add procedure set to the canvas description
string | $procSetName |
Definition at line 78 of file Canvas.php.
|
protected |
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'
string | $type | |
Zend_Pdf_Resource | $resource |
Definition at line 95 of file Canvas.php.
getContents | ( | ) |
Get drawing instructions stream
It has to be returned as a PDF stream object to make it reusable.
Implements Zend_Pdf_Canvas_Interface.
Definition at line 158 of file Canvas.php.
getHeight | ( | ) |
Return the height of this page in points.
Implements Zend_Pdf_Canvas_Interface.
Definition at line 168 of file Canvas.php.
getResources | ( | ) |
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 144 of file Canvas.php.
getWidth | ( | ) |
Return the width of this page in points.
Implements Zend_Pdf_Canvas_Interface.
Definition at line 178 of file Canvas.php.
|
protected |
Definition at line 55 of file Canvas.php.
|
protected |
Definition at line 41 of file Canvas.php.
|
protected |
Definition at line 57 of file Canvas.php.
|
protected |
Definition at line 48 of file Canvas.php.