try { // Set up destination attribute PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet(); aset.add(new ination(new java.net.URI("file:e:/temp/out.ps"))); // Print it job.print(doc, aset); } catch (PrintException e) { } catch (java.net.URISyntaxException e) { }