From inside my library, can I tell the sketch is rendering PDF?
in
Library and Tool Development
•
2 years ago
Some WordCram users want to render their WordCrams in PDFs, which doesn't work right now. I'm entertaining the idea, but I think I'll need substantially different WordCram "engines".
My question is, how can I tell that the sketch is rendering to PDF? I tried using {sketch}.g.getClass().getName(), which seems to be where Processing stores your choice of JAVA2D, P2D, P3D, PDF, etc. But there are different ways of rendering PDFs, and that technique doesn't always work.
1