Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions | Protected Attributes
Zend_Pdf_Canvas_Abstract Class Reference
Inheritance diagram for Zend_Pdf_Canvas_Abstract:
Zend_Pdf_Canvas_Interface Zend_Pdf_Canvas Zend_Pdf_Page

Public Member Functions

 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)
 
- Public Member Functions inherited from Zend_Pdf_Canvas_Interface
 getResources ()
 
 getContents ()
 
 getHeight ()
 
 getWidth ()
 

Protected Member Functions

 _addProcSet ($procSetName)
 
 _attachResource ($type, Zend_Pdf_Resource $resource)
 

Protected Attributes

 $_contents = ''
 
 $_font = null
 
 $_fontSize
 
 $_style = null
 
 $_saveCount = 0
 

Detailed Description

Definition at line 47 of file Abstract.php.

Member Function Documentation

◆ _addProcSet()

_addProcSet (   $procSetName)
abstractprotected

Add procedureSet to the Page description

Parameters
string$procSetName

◆ _attachResource()

_attachResource (   $type,
Zend_Pdf_Resource  $resource 
)
abstractprotected

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
string$type
Zend_Pdf_Resource$resource
Returns
string

◆ clipCircle()

clipCircle (   $x,
  $y,
  $radius,
  $startAngle = null,
  $endAngle = null 
)

Intersect current clipping area with a circle.

Parameters
float$x
float$y
float$radius
float$startAngle
float$endAngle
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 390 of file Abstract.php.

391  {
392  $this->clipEllipse($x - $radius, $y - $radius,
393  $x + $radius, $y + $radius,
394  $startAngle, $endAngle);
395 
396  return $this;
397  }
clipEllipse($x1, $y1, $x2, $y2, $startAngle=null, $endAngle=null)
Definition: Abstract.php:416

◆ clipEllipse()

clipEllipse (   $x1,
  $y1,
  $x2,
  $y2,
  $startAngle = null,
  $endAngle = null 
)

Intersect current clipping area with a polygon.

Method signatures: drawEllipse($x1, $y1, $x2, $y2); drawEllipse($x1, $y1, $x2, $y2, $startAngle, $endAngle);

Todo:
process special cases with $x2-$x1 == 0 or $y2-$y1 == 0
Parameters
float$x1
float$y1
float$x2
float$y2
float$startAngle
float$endAngle
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 416 of file Abstract.php.

417  {
418  $this->_addProcSet('PDF');
419 
420  if ($x2 < $x1) {
421  $temp = $x1;
422  $x1 = $x2;
423  $x2 = $temp;
424  }
425  if ($y2 < $y1) {
426  $temp = $y1;
427  $y1 = $y2;
428  $y2 = $temp;
429  }
430 
431  $x = ($x1 + $x2)/2.;
432  $y = ($y1 + $y2)/2.;
433 
434  $xC = new Zend_Pdf_Element_Numeric($x);
435  $yC = new Zend_Pdf_Element_Numeric($y);
436 
437  if ($startAngle !== null) {
438  if ($startAngle != 0) { $startAngle = fmod($startAngle, M_PI*2); }
439  if ($endAngle != 0) { $endAngle = fmod($endAngle, M_PI*2); }
440 
441  if ($startAngle > $endAngle) {
442  $endAngle += M_PI*2;
443  }
444 
445  $clipPath = $xC->toString() . ' ' . $yC->toString() . " m\n";
446  $clipSectors = (int)ceil(($endAngle - $startAngle)/M_PI_4);
447  $clipRadius = max($x2 - $x1, $y2 - $y1);
448 
449  for($count = 0; $count <= $clipSectors; $count++) {
450  $pAngle = $startAngle + ($endAngle - $startAngle)*$count/(float)$clipSectors;
451 
452  $pX = new Zend_Pdf_Element_Numeric($x + cos($pAngle)*$clipRadius);
453  $pY = new Zend_Pdf_Element_Numeric($y + sin($pAngle)*$clipRadius);
454  $clipPath .= $pX->toString() . ' ' . $pY->toString() . " l\n";
455  }
456 
457  $this->_contents .= $clipPath . "h\nW\nn\n";
458  }
459 
460  $xLeft = new Zend_Pdf_Element_Numeric($x1);
461  $xRight = new Zend_Pdf_Element_Numeric($x2);
462  $yUp = new Zend_Pdf_Element_Numeric($y2);
463  $yDown = new Zend_Pdf_Element_Numeric($y1);
464 
465  $xDelta = 2*(M_SQRT2 - 1)*($x2 - $x1)/3.;
466  $yDelta = 2*(M_SQRT2 - 1)*($y2 - $y1)/3.;
467  $xr = new Zend_Pdf_Element_Numeric($x + $xDelta);
468  $xl = new Zend_Pdf_Element_Numeric($x - $xDelta);
469  $yu = new Zend_Pdf_Element_Numeric($y + $yDelta);
470  $yd = new Zend_Pdf_Element_Numeric($y - $yDelta);
471 
472  $this->_contents .= $xC->toString() . ' ' . $yUp->toString() . " m\n"
473  . $xr->toString() . ' ' . $yUp->toString() . ' '
474  . $xRight->toString() . ' ' . $yu->toString() . ' '
475  . $xRight->toString() . ' ' . $yC->toString() . " c\n"
476  . $xRight->toString() . ' ' . $yd->toString() . ' '
477  . $xr->toString() . ' ' . $yDown->toString() . ' '
478  . $xC->toString() . ' ' . $yDown->toString() . " c\n"
479  . $xl->toString() . ' ' . $yDown->toString() . ' '
480  . $xLeft->toString() . ' ' . $yd->toString() . ' '
481  . $xLeft->toString() . ' ' . $yC->toString() . " c\n"
482  . $xLeft->toString() . ' ' . $yu->toString() . ' '
483  . $xl->toString() . ' ' . $yUp->toString() . ' '
484  . $xC->toString() . ' ' . $yUp->toString() . " c\n"
485  . "h\nW\nn\n";
486 
487  return $this;
488  }
_addProcSet($procSetName)
$count
Definition: recent.phtml:13

◆ clipPolygon()

clipPolygon (   $x,
  $y,
  $fillMethod = Zend_Pdf_Page::FILL_METHOD_NON_ZERO_WINDING 
)

Intersect current clipping area with a polygon.

Parameters
array$x- array of float (the X co-ordinates of the vertices)
array$y- array of float (the Y co-ordinates of the vertices)
integer$fillMethod
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 498 of file Abstract.php.

499  {
500  $this->_addProcSet('PDF');
501 
502  $firstPoint = true;
503  foreach ($x as $id => $xVal) {
504  $xObj = new Zend_Pdf_Element_Numeric($xVal);
505  $yObj = new Zend_Pdf_Element_Numeric($y[$id]);
506 
507  if ($firstPoint) {
508  $path = $xObj->toString() . ' ' . $yObj->toString() . " m\n";
509  $firstPoint = false;
510  } else {
511  $path .= $xObj->toString() . ' ' . $yObj->toString() . " l\n";
512  }
513  }
514 
515  $this->_contents .= $path;
516 
517  if ($fillMethod == Zend_Pdf_Page::FILL_METHOD_NON_ZERO_WINDING) {
518  $this->_contents .= " h\n W\nn\n";
519  } else {
520  // Even-Odd fill method.
521  $this->_contents .= " h\n W*\nn\n";
522  }
523 
524  return $this;
525  }
const FILL_METHOD_NON_ZERO_WINDING
Definition: Page.php:95
_addProcSet($procSetName)
$id
Definition: fieldset.phtml:14

◆ clipRectangle()

clipRectangle (   $x1,
  $y1,
  $x2,
  $y2 
)

Intersect current clipping area with a rectangle.

Parameters
float$x1
float$y1
float$x2
float$y2
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 536 of file Abstract.php.

537  {
538  $this->_addProcSet('PDF');
539 
540  $x1Obj = new Zend_Pdf_Element_Numeric($x1);
541  $y1Obj = new Zend_Pdf_Element_Numeric($y1);
542  $widthObj = new Zend_Pdf_Element_Numeric($x2 - $x1);
543  $height2Obj = new Zend_Pdf_Element_Numeric($y2 - $y1);
544 
545  $this->_contents .= $x1Obj->toString() . ' ' . $y1Obj->toString() . ' '
546  . $widthObj->toString() . ' ' . $height2Obj->toString() . " re\n"
547  . " W\nn\n";
548 
549  return $this;
550  }
_addProcSet($procSetName)

◆ drawCanvas()

drawCanvas ( Zend_Pdf_Canvas_Interface  $canvas,
  $x1,
  $y1,
  $x2 = null,
  $y2 = null 
)

Draw a canvas at the specified location

If upper right corner is not specified then canvas heght and width are used.

Parameters
Zend_Pdf_Canvas_Interface$canvas
float$x1
float$y1
float$x2
float$y2
Returns
Zend_Pdf_Canvas_Interface
Todo:
implementation

Implements Zend_Pdf_Canvas_Interface.

Definition at line 120 of file Abstract.php.

121  {
122  $this->saveGS();
123 
124  $this->translate($x1, $y1);
125 
126  if ($x2 === null) {
127  $with = $canvas->getWidth();
128  } else {
129  $with = $x2 - $x1;
130  }
131  if ($y2 === null) {
132  $height = $canvas->getHeight();
133  } else {
134  $height = $y2 - $y1;
135  }
136 
137  $this->clipRectangle(0, 0, $with, $height);
138 
139  if ($x2 !== null || $y2 !== null) {
140  // Drawn canvas has to be scaled.
141  if ($x2 !== null) {
142  $xScale = $with/$canvas->getWidth();
143  } else {
144  $xScale = 1;
145  }
146 
147  if ($y2 !== null) {
148  $yScale = $height/$canvas->getHeight();
149  } else {
150  $yScale = 1;
151  }
152 
153  $this->scale($xScale, $yScale);
154  }
155 
156  $contentsToDraw = $canvas->getContents();
159  $this->restoreGS();
160 
161  return $this;
162  }
translate($xShift, $yShift)
Definition: Abstract.php:1159
clipRectangle($x1, $y1, $x2, $y2)
Definition: Abstract.php:536
scale($xScale, $yScale)
Definition: Abstract.php:1141

◆ drawCircle()

drawCircle (   $x,
  $y,
  $radius,
  $param4 = null,
  $param5 = null,
  $param6 = null 
)

Draw a circle centered on x, y with a radius of radius.

Method signatures: drawCircle($x, $y, $radius); drawCircle($x, $y, $radius, $fillType); drawCircle($x, $y, $radius, $startAngle, $endAngle); drawCircle($x, $y, $radius, $startAngle, $endAngle, $fillType);

It's not a really circle, because PDF supports only cubic Bezier curves. But very good approximation. It differs from a real circle on a maximum 0.00026 radiuses (at PI/8, 3*PI/8, 5*PI/8, 7*PI/8, 9*PI/8, 11*PI/8, 13*PI/8 and 15*PI/8 angles). At 0, PI/4, PI/2, 3*PI/4, PI, 5*PI/4, 3*PI/2 and 7*PI/4 it's exactly a tangent to a circle.

Parameters
float$x
float$y
float$radius
mixed$param4
mixed$param5
mixed$param6
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 577 of file Abstract.php.

578  {
579  $this->drawEllipse($x - $radius, $y - $radius,
580  $x + $radius, $y + $radius,
581  $param4, $param5, $param6);
582 
583  return $this;
584  }
drawEllipse($x1, $y1, $x2, $y2, $param5=null, $param6=null, $param7=null)
Definition: Abstract.php:606

◆ drawEllipse()

drawEllipse (   $x1,
  $y1,
  $x2,
  $y2,
  $param5 = null,
  $param6 = null,
  $param7 = null 
)

Draw an ellipse inside the specified rectangle.

Method signatures: drawEllipse($x1, $y1, $x2, $y2); drawEllipse($x1, $y1, $x2, $y2, $fillType); drawEllipse($x1, $y1, $x2, $y2, $startAngle, $endAngle); drawEllipse($x1, $y1, $x2, $y2, $startAngle, $endAngle, $fillType);

Todo:
process special cases with $x2-$x1 == 0 or $y2-$y1 == 0
Parameters
float$x1
float$y1
float$x2
float$y2
mixed$param5
mixed$param6
mixed$param7
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 606 of file Abstract.php.

607  {
608  if ($param5 === null) {
609  // drawEllipse($x1, $y1, $x2, $y2);
610  $startAngle = null;
612  } else if ($param6 === null) {
613  // drawEllipse($x1, $y1, $x2, $y2, $fillType);
614  $startAngle = null;
615  $fillType = $param5;
616  } else {
617  // drawEllipse($x1, $y1, $x2, $y2, $startAngle, $endAngle);
618  // drawEllipse($x1, $y1, $x2, $y2, $startAngle, $endAngle, $fillType);
619  $startAngle = $param5;
620  $endAngle = $param6;
621 
622  if ($param7 === null) {
624  } else {
625  $fillType = $param7;
626  }
627  }
628 
629  $this->_addProcSet('PDF');
630 
631  if ($x2 < $x1) {
632  $temp = $x1;
633  $x1 = $x2;
634  $x2 = $temp;
635  }
636  if ($y2 < $y1) {
637  $temp = $y1;
638  $y1 = $y2;
639  $y2 = $temp;
640  }
641 
642  $x = ($x1 + $x2)/2.;
643  $y = ($y1 + $y2)/2.;
644 
645  $xC = new Zend_Pdf_Element_Numeric($x);
646  $yC = new Zend_Pdf_Element_Numeric($y);
647 
648  if ($startAngle !== null) {
649  if ($startAngle != 0) { $startAngle = fmod($startAngle, M_PI*2); }
650  if ($endAngle != 0) { $endAngle = fmod($endAngle, M_PI*2); }
651 
652  if ($startAngle > $endAngle) {
653  $endAngle += M_PI*2;
654  }
655 
656  $clipPath = $xC->toString() . ' ' . $yC->toString() . " m\n";
657  $clipSectors = (int)ceil(($endAngle - $startAngle)/M_PI_4);
658  $clipRadius = max($x2 - $x1, $y2 - $y1);
659 
660  for($count = 0; $count <= $clipSectors; $count++) {
661  $pAngle = $startAngle + ($endAngle - $startAngle)*$count/(float)$clipSectors;
662 
663  $pX = new Zend_Pdf_Element_Numeric($x + cos($pAngle)*$clipRadius);
664  $pY = new Zend_Pdf_Element_Numeric($y + sin($pAngle)*$clipRadius);
665  $clipPath .= $pX->toString() . ' ' . $pY->toString() . " l\n";
666  }
667 
668  $this->_contents .= "q\n" . $clipPath . "h\nW\nn\n";
669  }
670 
671  $xLeft = new Zend_Pdf_Element_Numeric($x1);
672  $xRight = new Zend_Pdf_Element_Numeric($x2);
673  $yUp = new Zend_Pdf_Element_Numeric($y2);
674  $yDown = new Zend_Pdf_Element_Numeric($y1);
675 
676  $xDelta = 2*(M_SQRT2 - 1)*($x2 - $x1)/3.;
677  $yDelta = 2*(M_SQRT2 - 1)*($y2 - $y1)/3.;
678  $xr = new Zend_Pdf_Element_Numeric($x + $xDelta);
679  $xl = new Zend_Pdf_Element_Numeric($x - $xDelta);
680  $yu = new Zend_Pdf_Element_Numeric($y + $yDelta);
681  $yd = new Zend_Pdf_Element_Numeric($y - $yDelta);
682 
683  $this->_contents .= $xC->toString() . ' ' . $yUp->toString() . " m\n"
684  . $xr->toString() . ' ' . $yUp->toString() . ' '
685  . $xRight->toString() . ' ' . $yu->toString() . ' '
686  . $xRight->toString() . ' ' . $yC->toString() . " c\n"
687  . $xRight->toString() . ' ' . $yd->toString() . ' '
688  . $xr->toString() . ' ' . $yDown->toString() . ' '
689  . $xC->toString() . ' ' . $yDown->toString() . " c\n"
690  . $xl->toString() . ' ' . $yDown->toString() . ' '
691  . $xLeft->toString() . ' ' . $yd->toString() . ' '
692  . $xLeft->toString() . ' ' . $yC->toString() . " c\n"
693  . $xLeft->toString() . ' ' . $yu->toString() . ' '
694  . $xl->toString() . ' ' . $yUp->toString() . ' '
695  . $xC->toString() . ' ' . $yUp->toString() . " c\n";
696 
697  switch ($fillType) {
699  $this->_contents .= " B*\n";
700  break;
702  $this->_contents .= " f*\n";
703  break;
705  $this->_contents .= " S\n";
706  break;
707  }
708 
709  if ($startAngle !== null) {
710  $this->_contents .= "Q\n";
711  }
712 
713  return $this;
714  }
_addProcSet($procSetName)
$count
Definition: recent.phtml:13
const SHAPE_DRAW_STROKE
Definition: Page.php:77
const SHAPE_DRAW_FILL
Definition: Page.php:82
const SHAPE_DRAW_FILL_AND_STROKE
Definition: Page.php:87

◆ drawImage()

drawImage ( Zend_Pdf_Resource_Image  $image,
  $x1,
  $y1,
  $x2,
  $y2 
)

Draw an image at the specified position on the page.

Parameters
Zend_Pdf_Image$image
float$x1
float$y1
float$x2
float$y2
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 726 of file Abstract.php.

727  {
728  $this->_addProcSet('PDF');
729 
730  $imageName = $this->_attachResource('XObject', $image);
731  $imageNameObj = new Zend_Pdf_Element_Name($imageName);
732 
733  $x1Obj = new Zend_Pdf_Element_Numeric($x1);
734  $y1Obj = new Zend_Pdf_Element_Numeric($y1);
735  $widthObj = new Zend_Pdf_Element_Numeric($x2 - $x1);
736  $heightObj = new Zend_Pdf_Element_Numeric($y2 - $y1);
737 
738  $this->_contents .= "q\n"
739  . '1 0 0 1 ' . $x1Obj->toString() . ' ' . $y1Obj->toString() . " cm\n"
740  . $widthObj->toString() . ' 0 0 ' . $heightObj->toString() . " 0 0 cm\n"
741  . $imageNameObj->toString() . " Do\n"
742  . "Q\n";
743 
744  return $this;
745  }
_addProcSet($procSetName)
_attachResource($type, Zend_Pdf_Resource $resource)

◆ drawLayoutBox()

drawLayoutBox (   $box,
  $x,
  $y 
)

Draw a LayoutBox at the specified position on the page.

Todo:
implementation

Implements Zend_Pdf_Canvas_Interface.

Definition at line 757 of file Abstract.php.

758  {
760  return $this;
761  }

◆ drawLine()

drawLine (   $x1,
  $y1,
  $x2,
  $y2 
)

Draw a line from x1,y1 to x2,y2.

Parameters
float$x1
float$y1
float$x2
float$y2
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 772 of file Abstract.php.

773  {
774  $this->_addProcSet('PDF');
775 
776  $x1Obj = new Zend_Pdf_Element_Numeric($x1);
777  $y1Obj = new Zend_Pdf_Element_Numeric($y1);
778  $x2Obj = new Zend_Pdf_Element_Numeric($x2);
779  $y2Obj = new Zend_Pdf_Element_Numeric($y2);
780 
781  $this->_contents .= $x1Obj->toString() . ' ' . $y1Obj->toString() . " m\n"
782  . $x2Obj->toString() . ' ' . $y2Obj->toString() . " l\n S\n";
783 
784  return $this;
785  }
_addProcSet($procSetName)

◆ drawPolygon()

drawPolygon (   $x,
  $y,
  $fillType = Zend_Pdf_Page::SHAPE_DRAW_FILL_AND_STROKE,
  $fillMethod = Zend_Pdf_Page::FILL_METHOD_NON_ZERO_WINDING 
)

Draw a polygon.

If $fillType is Zend_Pdf_Page::SHAPE_DRAW_FILL_AND_STROKE or Zend_Pdf_Page::SHAPE_DRAW_FILL, then polygon is automatically closed. See detailed description of these methods in a PDF documentation (section 4.4.2 Path painting Operators, Filling)

Parameters
array$x- array of float (the X co-ordinates of the vertices)
array$y- array of float (the Y co-ordinates of the vertices)
integer$fillType
integer$fillMethod
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 801 of file Abstract.php.

804  {
805  $this->_addProcSet('PDF');
806 
807  $firstPoint = true;
808  foreach ($x as $id => $xVal) {
809  $xObj = new Zend_Pdf_Element_Numeric($xVal);
810  $yObj = new Zend_Pdf_Element_Numeric($y[$id]);
811 
812  if ($firstPoint) {
813  $path = $xObj->toString() . ' ' . $yObj->toString() . " m\n";
814  $firstPoint = false;
815  } else {
816  $path .= $xObj->toString() . ' ' . $yObj->toString() . " l\n";
817  }
818  }
819 
820  $this->_contents .= $path;
821 
822  switch ($fillType) {
824  if ($fillMethod == Zend_Pdf_Page::FILL_METHOD_NON_ZERO_WINDING) {
825  $this->_contents .= " b\n";
826  } else {
827  // Even-Odd fill method.
828  $this->_contents .= " b*\n";
829  }
830  break;
832  if ($fillMethod == Zend_Pdf_Page::FILL_METHOD_NON_ZERO_WINDING) {
833  $this->_contents .= " h\n f\n";
834  } else {
835  // Even-Odd fill method.
836  $this->_contents .= " h\n f*\n";
837  }
838  break;
840  $this->_contents .= " S\n";
841  break;
842  }
843 
844  return $this;
845  }
const FILL_METHOD_NON_ZERO_WINDING
Definition: Page.php:95
_addProcSet($procSetName)
$id
Definition: fieldset.phtml:14
const SHAPE_DRAW_STROKE
Definition: Page.php:77
const SHAPE_DRAW_FILL
Definition: Page.php:82
const SHAPE_DRAW_FILL_AND_STROKE
Definition: Page.php:87

◆ drawRectangle()

drawRectangle (   $x1,
  $y1,
  $x2,
  $y2,
  $fillType = Zend_Pdf_Page::SHAPE_DRAW_FILL_AND_STROKE 
)

Draw a rectangle.

Fill types: Zend_Pdf_Page::SHAPE_DRAW_FILL_AND_STROKE - fill rectangle and stroke (default) Zend_Pdf_Page::SHAPE_DRAW_STROKE - stroke rectangle Zend_Pdf_Page::SHAPE_DRAW_FILL - fill rectangle

Parameters
float$x1
float$y1
float$x2
float$y2
integer$fillType
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 862 of file Abstract.php.

863  {
864  $this->_addProcSet('PDF');
865 
866  $x1Obj = new Zend_Pdf_Element_Numeric($x1);
867  $y1Obj = new Zend_Pdf_Element_Numeric($y1);
868  $widthObj = new Zend_Pdf_Element_Numeric($x2 - $x1);
869  $height2Obj = new Zend_Pdf_Element_Numeric($y2 - $y1);
870 
871  $this->_contents .= $x1Obj->toString() . ' ' . $y1Obj->toString() . ' '
872  . $widthObj->toString() . ' ' . $height2Obj->toString() . " re\n";
873 
874  switch ($fillType) {
876  $this->_contents .= " B*\n";
877  break;
879  $this->_contents .= " f*\n";
880  break;
882  $this->_contents .= " S\n";
883  break;
884  }
885 
886  return $this;
887  }
_addProcSet($procSetName)
const SHAPE_DRAW_STROKE
Definition: Page.php:77
const SHAPE_DRAW_FILL
Definition: Page.php:82
const SHAPE_DRAW_FILL_AND_STROKE
Definition: Page.php:87

◆ drawRoundedRectangle()

drawRoundedRectangle (   $x1,
  $y1,
  $x2,
  $y2,
  $radius,
  $fillType = Zend_Pdf_Page::SHAPE_DRAW_FILL_AND_STROKE 
)

Draw a rounded rectangle.

Fill types: Zend_Pdf_Page::SHAPE_DRAW_FILL_AND_STROKE - fill rectangle and stroke (default) Zend_Pdf_Page::SHAPE_DRAW_STROKE - stroke rectangle Zend_Pdf_Page::SHAPE_DRAW_FILL - fill rectangle

radius is an integer representing radius of the four corners, or an array of four integers representing the radius starting at top left, going clockwise

Parameters
float$x1
float$y1
float$x2
float$y2
integer | array$radius
integer$fillType
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 909 of file Abstract.php.

911  {
912 
913  $this->_addProcSet('PDF');
914 
915  if(!is_array($radius)) {
916  $radius = array($radius, $radius, $radius, $radius);
917  } else {
918  for ($i = 0; $i < 4; $i++) {
919  if(!isset($radius[$i])) {
920  $radius[$i] = 0;
921  }
922  }
923  }
924 
925  $topLeftX = $x1;
926  $topLeftY = $y2;
927  $topRightX = $x2;
928  $topRightY = $y2;
929  $bottomRightX = $x2;
930  $bottomRightY = $y1;
931  $bottomLeftX = $x1;
932  $bottomLeftY = $y1;
933 
934  //draw top side
935  $x1Obj = new Zend_Pdf_Element_Numeric($topLeftX + $radius[0]);
936  $y1Obj = new Zend_Pdf_Element_Numeric($topLeftY);
937  $this->_contents .= $x1Obj->toString() . ' ' . $y1Obj->toString() . " m\n";
938  $x1Obj = new Zend_Pdf_Element_Numeric($topRightX - $radius[1]);
939  $y1Obj = new Zend_Pdf_Element_Numeric($topRightY);
940  $this->_contents .= $x1Obj->toString() . ' ' . $y1Obj->toString() . " l\n";
941 
942  //draw top right corner if needed
943  if ($radius[1] != 0) {
944  $x1Obj = new Zend_Pdf_Element_Numeric($topRightX);
945  $y1Obj = new Zend_Pdf_Element_Numeric($topRightY);
946  $x2Obj = new Zend_Pdf_Element_Numeric($topRightX);
947  $y2Obj = new Zend_Pdf_Element_Numeric($topRightY);
948  $x3Obj = new Zend_Pdf_Element_Numeric($topRightX);
949  $y3Obj = new Zend_Pdf_Element_Numeric($topRightY - $radius[1]);
950  $this->_contents .= $x1Obj->toString() . ' ' . $y1Obj->toString() . ' '
951  . $x2Obj->toString() . ' ' . $y2Obj->toString() . ' '
952  . $x3Obj->toString() . ' ' . $y3Obj->toString() . ' '
953  . " c\n";
954  }
955 
956  //draw right side
957  $x1Obj = new Zend_Pdf_Element_Numeric($bottomRightX);
958  $y1Obj = new Zend_Pdf_Element_Numeric($bottomRightY + $radius[2]);
959  $this->_contents .= $x1Obj->toString() . ' ' . $y1Obj->toString() . " l\n";
960 
961  //draw bottom right corner if needed
962  if ($radius[2] != 0) {
963  $x1Obj = new Zend_Pdf_Element_Numeric($bottomRightX);
964  $y1Obj = new Zend_Pdf_Element_Numeric($bottomRightY);
965  $x2Obj = new Zend_Pdf_Element_Numeric($bottomRightX);
966  $y2Obj = new Zend_Pdf_Element_Numeric($bottomRightY);
967  $x3Obj = new Zend_Pdf_Element_Numeric($bottomRightX - $radius[2]);
968  $y3Obj = new Zend_Pdf_Element_Numeric($bottomRightY);
969  $this->_contents .= $x1Obj->toString() . ' ' . $y1Obj->toString() . ' '
970  . $x2Obj->toString() . ' ' . $y2Obj->toString() . ' '
971  . $x3Obj->toString() . ' ' . $y3Obj->toString() . ' '
972  . " c\n";
973  }
974 
975  //draw bottom side
976  $x1Obj = new Zend_Pdf_Element_Numeric($bottomLeftX + $radius[3]);
977  $y1Obj = new Zend_Pdf_Element_Numeric($bottomLeftY);
978  $this->_contents .= $x1Obj->toString() . ' ' . $y1Obj->toString() . " l\n";
979 
980  //draw bottom left corner if needed
981  if ($radius[3] != 0) {
982  $x1Obj = new Zend_Pdf_Element_Numeric($bottomLeftX);
983  $y1Obj = new Zend_Pdf_Element_Numeric($bottomLeftY);
984  $x2Obj = new Zend_Pdf_Element_Numeric($bottomLeftX);
985  $y2Obj = new Zend_Pdf_Element_Numeric($bottomLeftY);
986  $x3Obj = new Zend_Pdf_Element_Numeric($bottomLeftX);
987  $y3Obj = new Zend_Pdf_Element_Numeric($bottomLeftY + $radius[3]);
988  $this->_contents .= $x1Obj->toString() . ' ' . $y1Obj->toString() . ' '
989  . $x2Obj->toString() . ' ' . $y2Obj->toString() . ' '
990  . $x3Obj->toString() . ' ' . $y3Obj->toString() . ' '
991  . " c\n";
992  }
993 
994  //draw left side
995  $x1Obj = new Zend_Pdf_Element_Numeric($topLeftX);
996  $y1Obj = new Zend_Pdf_Element_Numeric($topLeftY - $radius[0]);
997  $this->_contents .= $x1Obj->toString() . ' ' . $y1Obj->toString() . " l\n";
998 
999  //draw top left corner if needed
1000  if ($radius[0] != 0) {
1001  $x1Obj = new Zend_Pdf_Element_Numeric($topLeftX);
1002  $y1Obj = new Zend_Pdf_Element_Numeric($topLeftY);
1003  $x2Obj = new Zend_Pdf_Element_Numeric($topLeftX);
1004  $y2Obj = new Zend_Pdf_Element_Numeric($topLeftY);
1005  $x3Obj = new Zend_Pdf_Element_Numeric($topLeftX + $radius[0]);
1006  $y3Obj = new Zend_Pdf_Element_Numeric($topLeftY);
1007  $this->_contents .= $x1Obj->toString() . ' ' . $y1Obj->toString() . ' '
1008  . $x2Obj->toString() . ' ' . $y2Obj->toString() . ' '
1009  . $x3Obj->toString() . ' ' . $y3Obj->toString() . ' '
1010  . " c\n";
1011  }
1012 
1013  switch ($fillType) {
1015  $this->_contents .= " B*\n";
1016  break;
1018  $this->_contents .= " f*\n";
1019  break;
1021  $this->_contents .= " S\n";
1022  break;
1023  }
1024 
1025  return $this;
1026  }
_addProcSet($procSetName)
const SHAPE_DRAW_STROKE
Definition: Page.php:77
const SHAPE_DRAW_FILL
Definition: Page.php:82
const SHAPE_DRAW_FILL_AND_STROKE
Definition: Page.php:87
$i
Definition: gallery.phtml:31

◆ drawText()

drawText (   $text,
  $x,
  $y,
  $charEncoding = '' 
)

Draw a line of text at the specified position.

Parameters
string$text
float$x
float$y
string$charEncoding(optional) Character encoding of source text. Defaults to current locale.
Exceptions
Zend_Pdf_Exception
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 1039 of file Abstract.php.

1040  {
1041  if ($this->_font === null) {
1042  #require_once 'Zend/Pdf/Exception.php';
1043  throw new Zend_Pdf_Exception('Font has not been set');
1044  }
1045 
1046  $this->_addProcSet('Text');
1047 
1048  $textObj = new Zend_Pdf_Element_String($this->_font->encodeString($text, $charEncoding));
1049  $xObj = new Zend_Pdf_Element_Numeric($x);
1050  $yObj = new Zend_Pdf_Element_Numeric($y);
1051 
1052  $this->_contents .= "BT\n"
1053  . $xObj->toString() . ' ' . $yObj->toString() . " Td\n"
1054  . $textObj->toString() . " Tj\n"
1055  . "ET\n";
1056 
1057  return $this;
1058  }
_addProcSet($procSetName)
endifif( $block->getLastPageNum()>1)( 'Page') ?></strong >< ul class $text
Definition: pager.phtml:43
toString($factory=null)
Definition: String.php:71

◆ getFont()

getFont ( )

Get current font.

Returns
Zend_Pdf_Resource_Font $font

Implements Zend_Pdf_Canvas_Interface.

Definition at line 289 of file Abstract.php.

290  {
291  return $this->_font;
292  }

◆ getFontSize()

getFontSize ( )

Get current font size

Returns
float $fontSize

Implements Zend_Pdf_Canvas_Interface.

Definition at line 299 of file Abstract.php.

300  {
301  return $this->_fontSize;
302  }

◆ getStyle()

getStyle ( )

Return the style, applied to the page.

Returns
Zend_Pdf_Style

Implements Zend_Pdf_Canvas_Interface.

Definition at line 309 of file Abstract.php.

310  {
311  return $this->_style;
312  }

◆ pathClose()

pathClose ( )

Close the path by drawing a straight line back to it's beginning.

Todo:
implementation

Implements Zend_Pdf_Canvas_Interface.

Definition at line 1068 of file Abstract.php.

1069  {
1071  return $this;
1072  }

◆ pathLine()

pathLine (   $x,
  $y 
)

Continue the open path in a straight line to the specified position.

Todo:
implementation

Implements Zend_Pdf_Canvas_Interface.

Definition at line 1083 of file Abstract.php.

1084  {
1086  return $this;
1087  }

◆ pathMove()

pathMove (   $x,
  $y 
)

Start a new path at the specified position. If a path has already been started, move the cursor without drawing a line.

Todo:
implementation

Implements Zend_Pdf_Canvas_Interface.

Definition at line 1099 of file Abstract.php.

1100  {
1102  return $this;
1103  }

◆ rawWrite()

rawWrite (   $data,
  $procSet = null 
)

Writes the raw data to the page's content stream.

Be sure to consult the PDF reference to ensure your syntax is correct. No attempt is made to ensure the validity of the stream data.

Parameters
string$data
string$procSet(optional) Name of ProcSet to add.
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 1208 of file Abstract.php.

1209  {
1210  if (! empty($procSet)) {
1211  $this->_addProcSet($procSet);
1212  }
1213  $this->_contents .= $data;
1214 
1215  return $this;
1216  }
_addProcSet($procSetName)

◆ restoreGS()

restoreGS ( )

Restore the graphics state that was saved with the last call to saveGS().

Exceptions
Zend_Pdf_Exception- if there is no previously saved state
Returns
Zend_Pdf_Canvas_Interface

Definition at line 339 of file Abstract.php.

340  {
341  if ($this->_saveCount-- <= 0) {
342  #require_once 'Zend/Pdf/Exception.php';
343  throw new Zend_Pdf_Exception('Restoring graphics state which is not saved');
344  }
345  $this->_contents .= " Q\n";
346 
347  return $this;
348  }

◆ rotate()

rotate (   $x,
  $y,
  $angle 
)

Rotate the page.

Parameters
float$x- the X co-ordinate of rotation point
float$y- the Y co-ordinate of rotation point
float$angle- rotation angle
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 1113 of file Abstract.php.

1114  {
1115  $cos = new Zend_Pdf_Element_Numeric(cos($angle));
1116  $sin = new Zend_Pdf_Element_Numeric(sin($angle));
1117  $mSin = new Zend_Pdf_Element_Numeric(-$sin->value);
1118 
1119  $xObj = new Zend_Pdf_Element_Numeric($x);
1120  $yObj = new Zend_Pdf_Element_Numeric($y);
1121 
1122  $mXObj = new Zend_Pdf_Element_Numeric(-$x);
1123  $mYObj = new Zend_Pdf_Element_Numeric(-$y);
1124 
1125 
1126  $this->_addProcSet('PDF');
1127  $this->_contents .= '1 0 0 1 ' . $xObj->toString() . ' ' . $yObj->toString() . " cm\n"
1128  . $cos->toString() . ' ' . $sin->toString() . ' ' . $mSin->toString() . ' ' . $cos->toString() . " 0 0 cm\n"
1129  . '1 0 0 1 ' . $mXObj->toString() . ' ' . $mYObj->toString() . " cm\n";
1130 
1131  return $this;
1132  }
_addProcSet($procSetName)

◆ saveGS()

saveGS ( )

Save the graphics state of this page. This takes a snapshot of the currently applied style, position, clipping area and any rotation/translation/scaling that has been applied.

Todo:
check for the open paths
Exceptions
Zend_Pdf_Exception- if a save is performed with an open path
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 323 of file Abstract.php.

324  {
325  $this->_saveCount++;
326 
327  $this->_addProcSet('PDF');
328  $this->_contents .= " q\n";
329 
330  return $this;
331  }
_addProcSet($procSetName)

◆ scale()

scale (   $xScale,
  $yScale 
)

Scale coordination system.

Parameters
float$xScale- X dimention scale factor
float$yScale- Y dimention scale factor
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 1141 of file Abstract.php.

1142  {
1143  $xScaleObj = new Zend_Pdf_Element_Numeric($xScale);
1144  $yScaleObj = new Zend_Pdf_Element_Numeric($yScale);
1145 
1146  $this->_addProcSet('PDF');
1147  $this->_contents .= $xScaleObj->toString() . ' 0 0 ' . $yScaleObj->toString() . " 0 0 cm\n";
1148 
1149  return $this;
1150  }
_addProcSet($procSetName)

◆ setAlpha()

setAlpha (   $alpha,
  $mode = 'Normal' 
)

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

Parameters
float$alpha
string$mode
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 364 of file Abstract.php.

365  {
366  $this->_addProcSet('Text');
367  $this->_addProcSet('PDF');
368 
369  $graphicsState = new Zend_Pdf_Resource_GraphicsState();
370 
371  $graphicsState->setAlpha($alpha, $mode);
372  $gStateName = $this->_attachResource('ExtGState', $graphicsState);
373 
374  $gStateNameObject = new Zend_Pdf_Element_Name($gStateName);
375  $this->_contents .= $gStateNameObject->toString() . " gs\n";
376 
377  return $this;
378  }
_addProcSet($procSetName)
_attachResource($type, Zend_Pdf_Resource $resource)
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
Definition: grid.phtml:15

◆ setFillColor()

setFillColor ( Zend_Pdf_Color  $color)

Set fill color.

Parameters
Zend_Pdf_Color$color
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 170 of file Abstract.php.

171  {
172  $this->_addProcSet('PDF');
173  $this->_contents .= $color->instructions(false);
174 
175  return $this;
176  }
_addProcSet($procSetName)
instructions($stroking)

◆ setFont()

setFont ( Zend_Pdf_Resource_Font  $font,
  $fontSize 
)

Set current font.

Parameters
Zend_Pdf_Resource_Font$font
float$fontSize
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 249 of file Abstract.php.

250  {
251  $this->_addProcSet('Text');
252  $fontName = $this->_attachResource('Font', $font);
253 
254  $this->_font = $font;
255  $this->_fontSize = $fontSize;
256 
257  $fontNameObj = new Zend_Pdf_Element_Name($fontName);
258  $fontSizeObj = new Zend_Pdf_Element_Numeric($fontSize);
259  $this->_contents .= $fontNameObj->toString() . ' ' . $fontSizeObj->toString() . " Tf\n";
260 
261  return $this;
262  }
_addProcSet($procSetName)
_attachResource($type, Zend_Pdf_Resource $resource)

◆ setLineColor()

setLineColor ( Zend_Pdf_Color  $color)

Set line color.

Parameters
Zend_Pdf_Color$color
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 184 of file Abstract.php.

185  {
186  $this->_addProcSet('PDF');
187  $this->_contents .= $color->instructions(true);
188 
189  return $this;
190  }
_addProcSet($procSetName)
instructions($stroking)

◆ setLineDashingPattern()

setLineDashingPattern (   $pattern,
  $phase = 0 
)

Set line dashing pattern

Pattern is an array of floats: array(on_length, off_length, on_length, off_length, ...) or Zend_Pdf_Page::LINE_DASHING_SOLID constant Phase is shift from the beginning of line.

Parameters
mixed$pattern
array$phase
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 218 of file Abstract.php.

219  {
220  $this->_addProcSet('PDF');
221 
222  #require_once 'Zend/Pdf/Page.php';
224  $pattern = array();
225  $phase = 0;
226  }
227 
228  $dashPattern = new Zend_Pdf_Element_Array();
229  $phaseEleemnt = new Zend_Pdf_Element_Numeric($phase);
230 
231  foreach ($pattern as $dashItem) {
232  $dashElement = new Zend_Pdf_Element_Numeric($dashItem);
233  $dashPattern->items[] = $dashElement;
234  }
235 
236  $this->_contents .= $dashPattern->toString() . ' '
237  . $phaseEleemnt->toString() . " d\n";
238 
239  return $this;
240  }
const LINE_DASHING_SOLID
Definition: Page.php:108
_addProcSet($procSetName)
$pattern
Definition: website.php:22

◆ setLineWidth()

setLineWidth (   $width)

Set line width.

Parameters
float$width
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 198 of file Abstract.php.

199  {
200  $this->_addProcSet('PDF');
201  $widthObj = new Zend_Pdf_Element_Numeric($width);
202  $this->_contents .= $widthObj->toString() . " w\n";
203 
204  return $this;
205  }
_addProcSet($procSetName)

◆ setStyle()

setStyle ( Zend_Pdf_Style  $style)

Set the style to use for future drawing operations on this page

Parameters
Zend_Pdf_Style$style
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 270 of file Abstract.php.

271  {
272  $this->_addProcSet('Text');
273  $this->_addProcSet('PDF');
274  if ($style->getFont() !== null) {
275  $this->setFont($style->getFont(), $style->getFontSize());
276  }
277  $this->_contents .= $style->instructions($this->_dictionary->Resources);
278 
279  $this->_style = $style;
280 
281  return $this;
282  }
_addProcSet($procSetName)
setFont(Zend_Pdf_Resource_Font $font, $fontSize)
Definition: Abstract.php:249

◆ skew()

skew (   $x,
  $y,
  $xAngle,
  $yAngle 
)

Translate coordination system.

Parameters
float$x- the X co-ordinate of axis skew point
float$y- the Y co-ordinate of axis skew point
float$xAngle- X axis skew angle
float$yAngle- Y axis skew angle
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 1179 of file Abstract.php.

1180  {
1181  $tanXObj = new Zend_Pdf_Element_Numeric(tan($xAngle));
1182  $tanYObj = new Zend_Pdf_Element_Numeric(-tan($yAngle));
1183 
1184  $xObj = new Zend_Pdf_Element_Numeric($x);
1185  $yObj = new Zend_Pdf_Element_Numeric($y);
1186 
1187  $mXObj = new Zend_Pdf_Element_Numeric(-$x);
1188  $mYObj = new Zend_Pdf_Element_Numeric(-$y);
1189 
1190  $this->_addProcSet('PDF');
1191  $this->_contents .= '1 0 0 1 ' . $xObj->toString() . ' ' . $yObj->toString() . " cm\n"
1192  . '1 ' . $tanXObj->toString() . ' ' . $tanYObj->toString() . " 1 0 0 cm\n"
1193  . '1 0 0 1 ' . $mXObj->toString() . ' ' . $mYObj->toString() . " cm\n";
1194 
1195  return $this;
1196  }
_addProcSet($procSetName)

◆ translate()

translate (   $xShift,
  $yShift 
)

Translate coordination system.

Parameters
float$xShift- X coordinate shift
float$yShift- Y coordinate shift
Returns
Zend_Pdf_Canvas_Interface

Implements Zend_Pdf_Canvas_Interface.

Definition at line 1159 of file Abstract.php.

1160  {
1161  $xShiftObj = new Zend_Pdf_Element_Numeric($xShift);
1162  $yShiftObj = new Zend_Pdf_Element_Numeric($yShift);
1163 
1164  $this->_addProcSet('PDF');
1165  $this->_contents .= '1 0 0 1 ' . $xShiftObj->toString() . ' ' . $yShiftObj->toString() . " cm\n";
1166 
1167  return $this;
1168  }
_addProcSet($procSetName)

Field Documentation

◆ $_contents

$_contents = ''
protected

Definition at line 54 of file Abstract.php.

◆ $_font

$_font = null
protected

Definition at line 61 of file Abstract.php.

◆ $_fontSize

$_fontSize
protected

Definition at line 68 of file Abstract.php.

◆ $_saveCount

$_saveCount = 0
protected

Definition at line 83 of file Abstract.php.

◆ $_style

$_style = null
protected

Definition at line 75 of file Abstract.php.


The documentation for this class was generated from the following file: