public void export(CyNetworkView view, FileOutputStream stream) throws IOException { DingNetworkView theView = (DingNetworkView) view; theView.setPrintingTextAsShape(!exportTextAsFont); InternalFrameComponent ifc = Cytoscape.getDesktop().getNetworkViewManager().getInternalFrameComponent(view); Properties p = new Properties(); p.setProperty(PSGraphics2D.PAGE_SIZE,"Letter"); p.setProperty("org.freehep.graphicsio.AbstractVectorGraphicsIO.TEXT_AS_SHAPES", Boolean.toString(!exportTextAsFont)); PSGraphics2D g = new PSGraphics2D(stream,ifc); g.setMultiPage(false); g.setProperties(p); g.startExport(); ifc.printWithoutForeground(g); g.endExport(); }