PrintOptions

Inheritance: java.lang.Object

public class PrintOptions

Options used to print a document.

Constructors

ConstructorDescription
PrintOptions()Initializes a new instance of the PrintOptions class.

Methods

MethodDescription
getPrinterSettings()Gets or sets the printer settings.
setPrinterSettings(AttributeSet value)Gets or sets the printer settings.
getDocumentName()Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.
setDocumentName(String value)Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.
getResolution()Gets or sets the resolution for the generated images, in dots per inch.
setResolution(float value)Gets or sets the resolution for the generated images, in dots per inch.
getPageSplittingAlgorithm()Gets or sets algorithm used for page splitting.
setPageSplittingAlgorithm(PageSplittingAlgorithm value)Gets or sets algorithm used for page splitting.

PrintOptions()

public PrintOptions()

Initializes a new instance of the PrintOptions class.

getPrinterSettings()

public AttributeSet getPrinterSettings()

Gets or sets the printer settings.

Returns: javax.print.attribute.AttributeSet

setPrinterSettings(AttributeSet value)

public void setPrinterSettings(AttributeSet value)

Gets or sets the printer settings.

Parameters:

ParameterTypeDescription
valuejavax.print.attribute.AttributeSet

getDocumentName()

public String getDocumentName()

Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.

Returns: java.lang.String

setDocumentName(String value)

public void setDocumentName(String value)

Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getResolution()

public float getResolution()

Gets or sets the resolution for the generated images, in dots per inch.


The default value is 96.

Returns: float

setResolution(float value)

public void setResolution(float value)

Gets or sets the resolution for the generated images, in dots per inch.


The default value is 96.

Parameters:

ParameterTypeDescription
valuefloat

getPageSplittingAlgorithm()

public PageSplittingAlgorithm getPageSplittingAlgorithm()

Gets or sets algorithm used for page splitting.

Value: The PageSplittingAlgorithm .

Returns: PageSplittingAlgorithm

setPageSplittingAlgorithm(PageSplittingAlgorithm value)

public void setPageSplittingAlgorithm(PageSplittingAlgorithm value)

Gets or sets algorithm used for page splitting.

Value: The PageSplittingAlgorithm .

Parameters:

ParameterTypeDescription
valuePageSplittingAlgorithm