6921664: The number of copies and the job name are not passed to a 3rd party PrintService

Reviewed-by: prr, jdv
This commit is contained in:
Prasanta Sadhukhan 2016-04-15 11:45:11 +05:30
parent 524efbad79
commit 0d5a231133
2 changed files with 249 additions and 0 deletions

View file

@ -1388,6 +1388,8 @@ public abstract class RasterPrinterJob extends PrinterJob {
Doc doc = new PageableDoc(getPageable());
if (attributes == null) {
attributes = new HashPrintRequestAttributeSet();
attributes.add(new Copies(getCopies()));
attributes.add(new JobName(getJobName(), null));
}
try {
job.print(doc, attributes);