GraphPageable document=PrintDocumentFactory.getInstance().createDocument(getCurrentFrame(),false);
if (document!=null) document.preview();
}
void savePDF() {
GraphPageable document=PrintDocumentFactory.getInstance().createDocument(getCurrentFrame(),false);
try {
Class generator=ClassLoaderUtils.forName("com.projity.image_export.PDFGenerator");
generator.getMethod("generatePDF", new Class[]{GraphPageable.class,Component.class}).invoke(null,new Object[]{document,getContainer()});
} catch (Exception e) {
e.printStackTrace();