We have a java-web application hosted on amazon ec2(ubuntu).
I'm unable to redirect my printing to the local default printers. In fact when i try to get a list of printers visible using the below code The only printer service that is listed on there is "PDF"
javax.print.PrintService[] service = (javax.print.PrintService[]) PrintServiceLookup.lookupPrintServices(DocFlavor.INPUT_STREAM.AUTOSENSE, null)
javax.print.PrintService service= null;
for(javax.print.PrintService service1 : services){
service = service1;
System.out.println(service1.getName());
}
Any suggestions/ tips is really appreciated.