/// <summary> /// Adds a PdfScriptObject to the page that draws an oval given left-upper coordinates and width and height. /// </summary> public static PdfObjectRef DrawOval(this PdfPageWriter page, double x, double y, double width, double height, PdfGraphicsOptions options) { var obj = new PdfScriptObject(); obj.BeginGraphicsState(); options.Apply(obj); obj.DrawOval(x, y, width, height); obj.EndPath(true, true, true); obj.EndGraphicsState(); return(page.WriteObject(obj)); }