Seems to depend on Cairo, which is AKAIK only available in X11 environments. Does anybody know how to get this working on OSX?
macOS has APIs to get a vector PDF snapshot from any view/window [1]. If emacs ends up drawing using platform APIs such as CoreText it should be possible to get a screenshot that way.