class Ellipse extends AbstractWriter

Methods

ellipse(array $position = [])

Adds an Ellipse to the PDF being rendered

Details

at line 68
ellipse(array $position = [])

Adds an Ellipse to the PDF being rendered

The positioning is always calculated in millimeters and the units should NOT be included.

Example

The X/Y position references the center of the ellipse (and not the top-left corner like when using $w->add() or $w->addMulti())

 // Add an Ellipse at 120mm from the left and 50mm from the top (this will mark the center of the ellipse), with a 5mm width and 3mm height
 $w->ellipse( [ 120, 50, 5, 3 ] );

 // Create a circle with a 5mm radius
 $w->ellipse( [ 120, 50, 5 ] );

Parameters

array $position The X, Y, Width and Height of the Ellipse to be added to the PDF. To make a circle you can exclude the height.

Exceptions

BadMethodCallException