How would I draw this in DynaPDFMBS?

I got this working for screen and printer, using an Object2D ovalshape, and rotation.

Code like this…

[code] dim diag as double
diag = sqrt((x1- x2)^2 + (y1- y2)^2 ) * 1.1
dim rot as double
rot = atan((y1- y2)/(x1- x2) )

      Dim o as New OvalShape
      o.width=diag  //TODO.. cater for longer ones
      
      o.height=10
      o.BorderWidth = 1
      o.BorderColor = 1
      o.fill = 0
      o.x =((x1 + x2) /2 -topleftx) * 10
      o.y= ((y1 + y2 ) /2 -toplefty) * 10

      o.rotation = rot

o.Border=100
g.DrawObject o[/code]

Now I need to get the same thing into a PDF file.
I use DynaPDFMBS but the DynaPDFGraphics class doesn’t support Object2D shapes.

Anyone any idea how to do a rotated oval using ‘standard’ DynaPDF instructions?

gPDF would use that EXACT code (where “g” if the gPDF object)
as gPDF was designed to use the same syntax (and subobjects) as the standard Xojo canvas