Export Geometry to PDF Annotation

I am trying to use the DynamoPDF package to turn spaces into a surface/filled region that I could export to a PDF.

This is a workaround instead of using spaces, as when the layouts change I have ‘bounded’ hatches in Bluebeam that can be adjusted manually rather than dealing with recreating the spaces.

The issue is that when I create the annotation with the package, I get an error saying that the geometry type is not supported, and it’s unclear what input format is usable. Has anyone used this package before to know what the node expects?

DynamoPDF does not accept a surface as geometry, however if you can convert the surface to one of the following - Arc, Line, Circle, Curve, Ellipse, Rectangle, Polygon, PolyCurve, NurbsCurve it should work.

Source code is on GitHub here