I would be very happy to be wrong, but it seems like the PDFDocument graphics object doesn’t support the Object2D objects (TextShape, RectShape, etc). Am i missing something?
Which Xojo Version are you using? It should work.
I’m using 2021 R3.1, but i’ll upgrade if its in the latest version.
PDFDocument does have a DrawObject method that i somehow missed. Thanks @Martin_T for making me read the docs a little more closely.
1 Like
Alrighty then… Using PDFDocument.Graphics.DrawObject() raises an UnsupportedOperationException - Graphics object cannot be used outside of its Paint event. The other Draw*() methods seem to work just fine.
Found a Xojo blog post about the DrawObject method being added in v2022r1, so it looks like i’ll need to upgrade.
1 Like