Skip to content
LpdfDocsv0.24-r1004.10

Lpdf is pre-release. The XML schema and SDK APIs can change between releases.

Circle / Ellipse

circle draws a circle by center and radius. ellipse draws an ellipse with separate x and y radii.

Attribute Type Default Description
cx signed pt — Center X (or offset from anchor)
cy signed pt — Center Y (or offset from anchor)
r pt — Required. Radius
anchor string — Reference point
fill color — Fill color
stroke color — Stroke color
stroke-width pt — Stroke width
stroke-dash string — Dash pattern
opacity 0–1 1 Opacity

Same as circle except r is replaced by:

Attribute Type Description
rx pt Required. Horizontal radius
ry pt Required. Vertical radius
<circle cx="100pt" cy="100pt" r="40pt" fill="#1a73e8" opacity="0.8"/>
<circle cx="306pt" cy="396pt" r="200pt" stroke="#e0e0e0" stroke-width="1pt"/>
<ellipse anchor="center" rx="150pt" ry="80pt" fill="#f0f4ff" opacity="0.5"/>