我有以下代码:
FileInputStream fis =
new FileInputStream("C:/test.pdf");
//PrintJob.Builder test = new PrintJob.Builder(fis);
//test.duplex(true);
//test.build();
Map <String,String> newMap = new HashMap<String, String>();
newMap.put("job-attributes", "sides:keyword:two-sided-short-edge#copies:2");
PrintJob pj = new PrintJob.Builder(fis).jobName("testJob").copies(2).attributes(newMap).build();
cp.print(pj);
我遇到的问题是即使我已将副本设置为 (2) 它只打印一次....
我做错了什么?