Hi, all.
I`m working on a some simple java 2D CAD viewer.
My task is send drawing to a printer. So user must select paper size it can be A4 paper or 1.5m x 5m (for plotter) so i`m not shure that it is possible to save as image.
After that i need scale my drawing to this paper size and print it on a single page.
I need print whole drawing even if it not fit on current screen (during resize by user).
Now I`m drawing on a GLCanvas.
I use GL2 calls.
So can I print content of GLCanvas to printer with selected paper size? I see some AWTPrintLifecycle inteface that implemented in GLCanvas.
Contents of GLCanvas changed during user interaction (scale, translate) but I need print whole scene in initial state.
So may be I need prepare some special GLCanvas that i can print?