This is a hack, but it works and can be used as a reference to create something like: `view.drawInPDFContext()` https://gist.github.com/C4Framework/da2989144e2ac038eb8104319a78dc85