public class StreamingClientNamedPrinter extends AbstractStreamingClient
AbstractStreamingClient.Client, AbstractStreamingClient.Orientation
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
legalCopyright |
Constructor and Description |
---|
StreamingClientNamedPrinter(java.lang.String printerName) |
Modifier and Type | Method and Description |
---|---|
void |
setCopies(java.lang.Integer copies)
Specifies the number of copies.
|
void |
setPaperSource(java.lang.String paperSource)
Selects a paper source by name.
|
void |
setPrinterName(java.lang.String printerName)
Selects a printer by name.
|
void |
setPrintFromPage(java.lang.Integer fromPage)
Sets the first page to be printed.
|
void |
setPrintToPage(java.lang.Integer toPage)
Sets the last page (inclusive) to be printed.
|
void |
setSheetCollate(java.lang.Boolean sheetCollate)
Activates sheet collation if true.
|
setCharsetToEmbed, setClient, setClientHost, setClientPort, setCompressOutput, setEmbedFonts, setFromPage, setOrientationRequested, setToPage
public static final java.lang.String legalCopyright
public StreamingClientNamedPrinter(java.lang.String printerName)
public void setPrinterName(java.lang.String printerName)
printerName
- A printer name as listed by the command line utility "printerinfo" from the GDC package.public void setPaperSource(java.lang.String paperSource)
paperSource
- A paper source as listed by the command line utility "printerinfo" from the GDC package.public void setCopies(java.lang.Integer copies)
1
.copies
- an integer greater than 0java.lang.IllegalArgumentException
- if copies
is less than
or equal to 0public void setPrintFromPage(java.lang.Integer fromPage)
fromPage
- an integer greater than zero and less than or equal to
toPage.java.lang.IllegalArgumentException
- if the above condition
is violated.public void setPrintToPage(java.lang.Integer toPage)
toPage
- an integer greater than zero and greater than or equal
to fromPage.java.lang.IllegalArgumentException
- if the above condition
is violated.public void setSheetCollate(java.lang.Boolean sheetCollate)
false
.
If set, each copy of each document is printed with the print-stream sheets
in sequence. When sheet collation isn't set, each print-stream sheet is
printed a number of times equal to the value of the copies
value in succession. For example, suppose a document produces two media
sheets as output, copies
is 6, and sheet collation is
not set. In this case six copies of the first page are printed
followed by six copies of the second page and so forth.
The default value is false
.sheetCollate
- whether copies are printed by repeating the entire
report or by repeating individual pages.