Setting the Number of Copies of a Print Job - Java 2D Graphics

Java examples for 2D Graphics:Print

Description

Setting the Number of Copies of a Print Job


// Set up the attribute set
PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
aset.add(new Copies(2));

// Print it
job.print(doc, aset);

Related Tutorials