1

私は次のコードを持っています:

                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)に設定しても、一度しか印刷されないことです....

私は何か間違ったことをしましたか?

4

1 に答える 1